WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/02/2021 01:56:35 AM (6 months 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-blocks.php

    r51039 r51061  
    5656do_action( 'enqueue_block_editor_assets' );
    5757
     58/** This action is documented in wp-admin/widgets-form.php */
     59do_action( 'sidebar_admin_setup' );
     60
    5861require_once ABSPATH . 'wp-admin/admin-header.php';
    5962
     
    6568
    6669<?php
     70/** This action is documented in wp-admin/widgets-form.php */
     71do_action( 'sidebar_admin_page' );
     72
    6773require_once ABSPATH . 'wp-admin/admin-footer.php';
Note: See TracChangeset for help on using the changeset viewer.