Opened 3 years ago
Closed 3 years ago
#8594 closed enhancement (fixed)
Legacy Widgets: next step before deprecation
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 10.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description
In 9.0.0 we've added 1 Block Widget for each Legacy Widget. Block Widgets are including a specific function to transform the corresponding Legacy Widget to the Block one.
The downside of this is shown into the above screenshot, when looking for "buddypress" Blocks into the widgets screen introduced in WordPress 5.8, only Legacy Widgets are listed.
Users are able to migrate Legacy Widgets to Block ones in BP 9.0.0. In 10.0.0, I suggest to take a new step before deprecating Legacy Widgets (when our required WP version will be >= 5.8). When the theme supports Block Widgets and WordPress is >= 5.8, Legacy Widgets will not be loaded unless a specific filter is used to retain them using this code:
add_filter( 'bp_core_retain_legacy_widgets', '__return_true' );
What's the opinion of the team about it?
I've just tested with the Classic Widget Editor. I confirm Legacy Widgets will be available for people using this plugin.