X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..refs/tags/wordpress-3.4.2-scripts:/wp-admin/admin-header.php diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 18b5ff3c..248897c9 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -10,6 +10,14 @@ 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, + $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 ) ); @@ -29,47 +37,34 @@ $admin_title = apply_filters( 'admin_title', $admin_title, $title ); wp_user_settings(); +_wp_admin_html_begin(); ?> - - > - - <?php echo $admin_title; ?> - - +$admin_body_class .= ' no-customize-support'; + +?> "> -
- -
-