From 5dab7294bdb2066b9e55446c3c5d35c65b0ca463 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 10 Aug 2011 19:54:59 +0000 Subject: [PATCH] Globalize variables used in admin-header in case it is used in a function. props SergeyBiryukov, fixes #16143. git-svn-id: http://svn.automattic.com/wordpress/trunk@18526 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index e0a424184..b8b9f1051 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -10,6 +10,10 @@ if ( ! defined( 'WP_ADMIN' ) ) require_once( './admin.php' ); +// In case admin-header.php is included in a function. +global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone, + $user_identity, $current_site, $update_title, $total_update_count, $parent_file; + get_admin_page_title(); $title = esc_html( strip_tags( $title ) );