diff --git a/src/wp-admin/menu-header.php b/src/wp-admin/menu-header.php index cf7fe7d3e005e..05ee3a183bb59 100644 --- a/src/wp-admin/menu-header.php +++ b/src/wp-admin/menu-header.php @@ -16,6 +16,8 @@ * * @global string $self */ +global $self; + $self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] ); $self = preg_replace( '|^.*/wp-admin/|i', '', $self ); $self = preg_replace( '|^.*/plugins/|i', '', $self ); diff --git a/src/wp-admin/menu.php b/src/wp-admin/menu.php index 81fdefb8bd127..b5b1c08793553 100644 --- a/src/wp-admin/menu.php +++ b/src/wp-admin/menu.php @@ -24,7 +24,9 @@ * 6: Icon for top level menu. * * @global array $menu + * @global array $submenu */ +global $menu, $submenu; $menu[2] = array( __( 'Dashboard' ), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' ); diff --git a/src/wp-includes/shortcodes.php b/src/wp-includes/shortcodes.php index bddf63ada28a3..afbd0be2ef735 100644 --- a/src/wp-includes/shortcodes.php +++ b/src/wp-includes/shortcodes.php @@ -39,6 +39,7 @@ * @var array * @global array $shortcode_tags */ +global $shortcode_tags; $shortcode_tags = array(); /** diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php index 7bdeef2e7d4de..f9fa3c8847f1e 100644 --- a/src/wp-includes/version.php +++ b/src/wp-includes/version.php @@ -16,6 +16,7 @@ * * @global string $wp_version */ +global $wp_version; $wp_version = '6.8-alpha-59274-src'; /** @@ -23,6 +24,7 @@ * * @global int $wp_db_version */ +global $wp_db_version; $wp_db_version = 58975; /** @@ -30,6 +32,7 @@ * * @global string $tinymce_version */ +global $tinymce_version; $tinymce_version = '49110-20201110'; /** @@ -37,6 +40,7 @@ * * @global string $required_php_version */ +global $required_php_version; $required_php_version = '7.2.24'; /** @@ -44,6 +48,7 @@ * * @global string[] $required_php_extensions */ +global $required_php_extensions; $required_php_extensions = array( 'json', 'hash', @@ -54,4 +59,5 @@ * * @global string $required_mysql_version */ +global $required_mysql_version; $required_mysql_version = '5.5.5';