mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Customizer: Remove Widgets panel when a theme does not support widgets
By setting 'theme_supports' on the panel, we ensure that the Widgets panel is removed if a theme does not have support for 'widgets'. This makes the behaviour of the Widgets and Menus panels consistent. Follows [52621]. See #54888. Props hellofromTonya, costdev, peterwilsoncc. git-svn-id: https://develop.svn.wordpress.org/trunk@52622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -420,6 +420,7 @@ final class WP_Customize_Widgets {
|
||||
'priority' => 110,
|
||||
'active_callback' => array( $this, 'is_panel_active' ),
|
||||
'auto_expand_sole_section' => true,
|
||||
'theme_supports' => 'widgets',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user