From 26852dbac7efbbafddf6b1a888fb53d25df4ae27 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 15 Mar 2023 09:05:22 +0000 Subject: [PATCH] Administration: Define the `$title` global on the Menus screen for classic themes. This brings more consistency with other screens and avoids a PHP warning in `get_plugin_page_hookname()`: {{{ preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated }}} Follow-up to [13257], [13366], [55263]. Props nendeb55, costdev, SergeyBiryukov. Fixes #57918. Built from https://develop.svn.wordpress.org/trunk@55552 git-svn-id: http://core.svn.wordpress.org/trunk@55064 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/nav-menus.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 1c4c07c99a..1758bfe221 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -28,6 +28,9 @@ if ( ! current_user_can( 'edit_theme_options' ) ) { ); } +// Used in the HTML title tag. +$title = __( 'Menus' ); + wp_enqueue_script( 'nav-menu' ); if ( wp_is_mobile() ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index c2ab5f266f..36ace0e2cd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55549'; +$wp_version = '6.3-alpha-55552'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.