mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-19 10:44:24 +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:
@@ -55,6 +55,9 @@ wp_enqueue_style( 'wp-edit-widgets' );
|
||||
/** This action is documented in wp-admin/edit-form-blocks.php */
|
||||
do_action( 'enqueue_block_editor_assets' );
|
||||
|
||||
/** This action is documented in wp-admin/widgets-form.php */
|
||||
do_action( 'sidebar_admin_setup' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
/** This action is documented in wp-admin/widgets-form.php */
|
||||
@@ -64,4 +67,7 @@ do_action( 'widgets_admin_page' );
|
||||
<div id="widgets-editor" class="blocks-widgets-container"></div>
|
||||
|
||||
<?php
|
||||
/** This action is documented in wp-admin/widgets-form.php */
|
||||
do_action( 'sidebar_admin_page' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
Reference in New Issue
Block a user