X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/1c09677af04c9e37714e09b73eb9dbc5b2e3eb13..a7152b1f4c81650e5ba96ef07f9aa9c0fbc7752b:/wp-admin/admin-header.php diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 81711f38..61ba38b2 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -7,7 +7,8 @@ */ @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); -if (!isset($_GET["page"])) require_once('admin.php'); +if ( ! defined( 'WP_ADMIN' ) ) + require_once( './admin.php' ); get_admin_page_title(); $title = esc_html( strip_tags( $title ) ); @@ -25,28 +26,32 @@ wp_admin_css( 'css/global' ); wp_admin_css(); wp_admin_css( 'css/colors' ); wp_admin_css( 'css/ie' ); +if ( is_multisite() ) + wp_admin_css( 'css/ms' ); wp_enqueue_script('utils'); -$hook_suffix = ''; -if ( isset($page_hook) ) - $hook_suffix = "$page_hook"; -else if ( isset($plugin_page) ) - $hook_suffix = "$plugin_page"; -else if ( isset($pagenow) ) - $hook_suffix = "$pagenow"; - $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); ?> @@ -90,6 +94,7 @@ if ( '' == $blog_name ) { if ( $blog_name != $blog_name_excerpt ) $blog_name_excerpt = trim($blog_name_excerpt) . '…'; $blog_name = $blog_name_excerpt; + unset($blog_name_excerpt); } $title_class = ''; if ( function_exists('mb_strlen') ) { @@ -101,28 +106,52 @@ if ( function_exists('mb_strlen') ) { } ?> -

>

+ +

> + + + + + + +

+ +
-

%2$s'), 'profile.php', $user_identity) ?> - | -

+

%2$s'), 'profile.php', $user_identity); +$links[15] = '| ' . __('Log Out') . ''; + +$links = apply_filters('admin_user_info_links', $links, $current_user); +ksort($links); + +echo implode(' ', $links); +?>

- +
- +parent_file = $parent_file; +$current_screen->parent_base = preg_replace('/\?.*$/', '', $parent_file); +$current_screen->parent_base = str_replace('.php', '', $current_screen->parent_base); +?>