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:
parent
2c789f296a
commit
b1935deee4
|
@ -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 ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue