mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 21:54:28 +00:00
Widgets: Add missing actions to widgets block editor
Adds the `'sidebar_admin-setup'`, `'sidebar_admin_page'`, and `current_theme_supports( 'widgets' )` check to the widgets block editor so that the block editor screen is more compatible with the classic screen. Fixes #53288. Props isabel_brison. git-svn-id: https://develop.svn.wordpress.org/trunk@51061 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,6 +20,10 @@ if ( ! current_user_can( 'edit_theme_options' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! current_theme_supports( 'widgets' ) ) {
|
||||
wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://developer.wordpress.org/themes/functionality/widgets/">follow these instructions</a>.' ) );
|
||||
}
|
||||
|
||||
$title = __( 'Widgets' );
|
||||
$parent_file = 'themes.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user