Skip to content

Commit 6df9033

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55552 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2008682 commit 6df9033

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp-admin/nav-menus.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
);
2929
}
3030

31+
// Used in the HTML title tag.
32+
$title = __( 'Menus' );
33+
3134
wp_enqueue_script( 'nav-menu' );
3235

3336
if ( wp_is_mobile() ) {

0 commit comments

Comments
 (0)