Globalize variables used in admin-header in case it is used in a function. props SergeyBiryukov, fixes #16143.
git-svn-id: https://develop.svn.wordpress.org/trunk@18526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e14a6675b
commit
d90d462e6b
|
@ -10,6 +10,10 @@
|
||||||
if ( ! defined( 'WP_ADMIN' ) )
|
if ( ! defined( 'WP_ADMIN' ) )
|
||||||
require_once( './admin.php' );
|
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();
|
get_admin_page_title();
|
||||||
$title = esc_html( strip_tags( $title ) );
|
$title = esc_html( strip_tags( $title ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue