From 341944a35232b9a5e9378805783f9dcc7f6cae03 Mon Sep 17 00:00:00 2001 From: noisysocks Date: Thu, 27 May 2021 01:52:57 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@51038 git-svn-id: http://core.svn.wordpress.org/trunk@50647 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets-form-blocks.php | 7 +++++++ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/widgets-form-blocks.php b/wp-admin/widgets-form-blocks.php index 80a18f6639..9d8d2d9544 100644 --- a/wp-admin/widgets-form-blocks.php +++ b/wp-admin/widgets-form-blocks.php @@ -56,6 +56,13 @@ wp_enqueue_style( 'wp-edit-widgets' ); do_action( 'enqueue_block_editor_assets' ); require_once ABSPATH . 'wp-admin/admin-header.php'; + +/** + * Fires before the Widgets administration page content loads. + * + * @since 3.0.0 + */ +do_action( 'widgets_admin_page' ); ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index e2ccd98d3b..2b72c5dd30 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51037'; +$wp_version = '5.8-alpha-51038'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.