Closed imath closed 3 years ago
I can reproduce this with both WooCommerce and SiteOrigin widgets, but only on the second delete. So my steps are:
I can also reproduce the issue by adding two identical legacy widgets in the same widget area, saving and refreshing the page.
Deleting all widgets (including inactive) from the old widgets screen fixes the issue.
Thanks for the report! This is due to a REST API bug which will need to be fixed in core now that that code has been merged. I've opened https://core.trac.wordpress.org/ticket/53305.
Description
Hi, First congrats for the work achieved so far about the Widget Block Editor. I've started working on migrating the BuddyPress Legacy widgets. So far it's going great. I just noticed something weird about legacy widget block: the select box is listing more than once widgets as soon as you add/remove a widget.
Step-by-step reproduction instructions
get_current_screen()
function to cause a fatal into the new Widget Block editor screen).buddypress
Expected behaviour
Only list a widget once into the select box of the Legacy widget block
Actual behaviour
Duplicates as soon as you add/remove a legacy widget
Screenshots or screen recording (optional)
WordPress information
Device information