Legacy Widget Visibility Settings Saving Incorrectly
-
We use Jetpack and the Widget Visibility module on many of our sites. On these sites we have legacy widgets that were in place prior to WordPress updating the widget area to be block-based.
Whenever we make a change to a widget and save, the “Match all conditions” checkbox/option always ends up checked on the legacy widgets. If we uncheck this option and save our changes again, it has no effect. On most of our legacy widgets we want this option unchecked/disabled, but this currently isn’t possible due to this bug.
We’ve tested on a clean install that uses WordPress 5.8.2, the Twenty Twenty-One theme, and just the Jetpack plugin and the problem still exists.
To replicate the issue:
- Install the Classic Widgets plugin. This is solely so you can create a “legacy widget”.
- With the Classic Widgets plugin activated, add the “Categories” widget to a widget area.
- Set the widget visibility on the Categories widget to have multiple conditions using the OR operator. Make sure the “Match all conditions” checkbox is not checked.
- Deactivate the Classic Widgets plugin.
- Go back to the widgets screen and edit the the visibility on the Categories widget. Make sure the “Match all conditions” checkbox is still unchecked.
- Click the “Update” button to save the changes.
- Look at the widget visibility settings of the Categories widget again. You’ll see the “Match all conditions” checkbox is now checked.
For now we’ve had to resort to installing the Classic Widgets plugin to prevent this visibility issue, but it’s only a temporary solution. Ideally this bug in the Jetpack Widget Visibility module will be addressed so we can switch back to the block-based widget editor.
Many thanks.
- The topic ‘Legacy Widget Visibility Settings Saving Incorrectly’ is closed to new replies.