Make WordPress Core


Ignore:
Timestamp:
06/02/2021 01:56:35 AM (4 years ago)
Author:
noisysocks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets-form.php

    r50997 r51061  
    7272    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    7373);
    74 
    75 if ( ! current_theme_supports( 'widgets' ) ) {
    76     wp_die( __( 'The theme you are currently using isn&#8217;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>.' ) );
    77 }
    7874
    7975// These are the widgets grouped by sidebar.
Note: See TracChangeset for help on using the changeset viewer.