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. Merges [55552] to the 6.2 branch. Fixes #57918. Built from https://develop.svn.wordpress.org/branches/6.2@55639 git-svn-id: http://core.svn.wordpress.org/branches/6.2@55151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e893025eed
commit
b48bb0fb4c
|
@ -28,6 +28,9 @@ if ( ! current_user_can( 'edit_theme_options' ) ) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used in the HTML title tag.
|
||||||
|
$title = __( 'Menus' );
|
||||||
|
|
||||||
wp_enqueue_script( 'nav-menu' );
|
wp_enqueue_script( 'nav-menu' );
|
||||||
|
|
||||||
if ( wp_is_mobile() ) {
|
if ( wp_is_mobile() ) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2.1-alpha-55638';
|
$wp_version = '6.2.1-alpha-55639';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue