-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizer: Error in console after opening a widget area when a theme opts-out of the new block-based “Widgets” screen #24949
Comments
I tested this with master today. (Oct 15, 2020) |
I did a test with Gutenberg version 9.2.2 and it's working now. |
I am reopening this as trying to test with the Gutenberg plugin activated, adding |
@draganescu: Where are you seeing that error? When I enable the Gutenberg plugin, enable the Widgets screen in Customizer experiment, add |
That was a while ago @noisysocks |
I can partially reproduce this by adding |
|
Looks like this was fixed in WordPress/wordpress-develop#1382. More details in Trac. https://core.trac.wordpress.org/ticket/53424#ticket Can we close this one out now @noisysocks? |
Describe the bug
Since Gutenberg 8.9.0 RC1 (#24087) it is possible to opt-out of the new block-based “Widgets” screen adding
remove_theme_support( 'widgets-block-editor' );
to any theme.This keeps the legacy “Widgets” screen and prevent the new block-based “Widgets” screen to appear.
But doing so does not bring back the legacy “Widgets” section on the customizer.
It's crucial to maintain this section for backward compatibility reasons, specially for themes that heavily use widgets for layout purposes or widgets that have many visual controls, like color pickers.
To reproduce
Steps to reproduce the behavior:
remove_theme_support( 'widgets-block-editor' );
in thefunctions.php
file to opt-out of the new block-based “Widgets” screen.Expected behavior
When a theme opts-out of the new block-based “Widgets” screen, the legacy “Widgets” section should appear on the customizer.
Screenshots
Editor version:
Desktop:
The text was updated successfully, but these errors were encountered: