wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Closes #6878 Activation and deactivation of Performance hints data filters

Open Khadreal opened this issue 5 months ago • 1 comments

Description

Make sure data are cleared when filters are deactivated.

Fixes #6878

Type of change

  • [x] Enhancement (non-breaking change which improves an existing functionality).

Detailed scenario

Disabled the performance filters and try to switch theme, change permalinks, post trash or delete, the data aren't cleared. Data should be cleared as specified in the Epic Card

Technical description

Remove the logic check for filters when any of this action is taken.

Documentation

Ensure the data are cleared as specified either when the filters are activated or deactivated.

New dependencies

N/A

Risks

N//A

Mandatory Checklist

Code validation

  • [x] I validated all the Acceptance Criteria. If possible, provide screenshots or videos.
  • [x] I triggered all changed lines of code at least once without new errors/warnings/notices.
  • [x] I implemented built-in tests to cover the new/changed code.

Code style

  • [x] I wrote a self-explanatory code about what it does.
  • [x] I did not introduce unnecessary complexity.

Khadreal avatar Aug 29 '24 09:08 Khadreal