Make WordPress Core

Changeset 51038


Ignore:
Timestamp:
05/27/2021 01:51:49 AM (5 years ago)
Author:
noisysocks
Message:

Widgets: Perform 'widgets_admin_page' action in block widget editor

Perform the 'widgets_admin_page' action just prior to outputting markup for the
widgets block editor so as to maximise backwards compatibility with the old
screen.

Follows [51037].
See #51506.
Props isabel_brison.

File:
1 edited

Legend:

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

    r51037 r51038  
    5757
    5858require_once ABSPATH . 'wp-admin/admin-header.php';
     59
     60/**
     61 * Fires before the Widgets administration page content loads.
     62 *
     63 * @since 3.0.0
     64 */
     65do_action( 'widgets_admin_page' );
    5966?>
    6067
Note: See TracChangeset for help on using the changeset viewer.