Skip to content

Commit

Permalink
Globalize variables used in admin-header in case it is used in a func…
Browse files Browse the repository at this point in the history
…tion. props SergeyBiryukov, fixes #16143.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Aug 10, 2011
1 parent 97730f6 commit 5dab729
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-admin/admin-header.php
Expand Up @@ -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 ) );

Expand Down

0 comments on commit 5dab729

Please sign in to comment.