Restore the $current_site global in wp-admin/admin-header.php to avoid an undefined function error in single site.
see #25158. Built from https://develop.svn.wordpress.org/trunk@26124 git-svn-id: http://core.svn.wordpress.org/trunk@26036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e64191e739
commit
07544aec69
|
@ -12,9 +12,7 @@ if ( ! defined( 'WP_ADMIN' ) )
|
||||||
|
|
||||||
// In case admin-header.php is included in a function.
|
// In case admin-header.php is included in a function.
|
||||||
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
|
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
|
||||||
$update_title, $total_update_count, $parent_file;
|
$current_site, $update_title, $total_update_count, $parent_file;
|
||||||
|
|
||||||
$current_site = get_current_site();
|
|
||||||
|
|
||||||
// Catch plugins that include admin-header.php before admin.php completes.
|
// Catch plugins that include admin-header.php before admin.php completes.
|
||||||
if ( empty( $current_screen ) )
|
if ( empty( $current_screen ) )
|
||||||
|
|
Loading…
Reference in New Issue