Divi compatibility: Notice to clear used CSS is missing after re-enabling RUCSS feature even when needed #6095
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
can't reproduce
Issues that can't be reproduced
module: remove unused css
needs: grooming
priority: low
Issues that can wait
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
This issue has been spotted by QA while testing #6074 . Notices for Divi users to clear used CSS is not displayed when the Remove Unused CSS option is switched from deactivated to activated, even though it could be needed.
To Reproduce
There are a couple of scenarios that are failing.
With Remove Unused CSS enabled and used CSS existing in the database:
For the second scenario, with Remove Unused CSS enabled and used CSS existing in the database:
Expected behavior
When activating the Remove Unused CSS options, if a Divi template has been updated since the last update of used CSS, then the notice must be displayed.
Additional context
This is a continuation of #6074
Acceptance Criteria
Whenever Divi Template is updated and Used CSS is enabled, we'll display a dismissible warning on all admin pages (just like for activation/deactivation of the plugins, lack of the CSS is major thing)
Whenever Divi Template is updated and Used CSS is disabled, notice will not be displayed.
Wording will be as following: WP Rocket: Your Divi template was updated. Clear the Used CSS if the layout, design or CSS styles were changed.
After clicking on Clear Used CSS, we'll purge the Used CSS and Cache
After clicking on Dismiss, the message will disappear
If the Divi template will be updated in the future, the message should be displayed once again
The text was updated successfully, but these errors were encountered: