Call set_current_screen() again in admin-header.php in case a plugin includes admin-header.php before admin.php completes. Rare and silly, but seen in the wild. props ryan, see #18785.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-12-01 03:37:22 +00:00
parent 2c789f296a
commit b1935deee4
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ if ( ! defined( 'WP_ADMIN' ) )
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone,
$current_site, $update_title, $total_update_count, $parent_file;
// Catch plugins that include admin-header.php before admin.php completes.
if ( empty( $current_screen ) )
set_current_screen();
get_admin_page_title();
$title = esc_html( strip_tags( $title ) );