X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..0b8a53f298029318648c37e477703e903dfcb82b:/wp-admin/admin-header.php diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 27c496a7..ac793409 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -7,47 +7,69 @@ */ @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 ) ); + +if ( is_network_admin() ) + $admin_title = __( 'Network Admin' ); +elseif ( is_user_admin() ) + $admin_title = __( 'Global Dashboard' ); +else + $admin_title = get_bloginfo( 'name' ); + +if ( $admin_title == $title ) + $admin_title = sprintf( __( '%1$s — WordPress' ), $title ); +else + $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title ); + +$admin_title = apply_filters( 'admin_title', $admin_title, $title ); + wp_user_settings(); wp_menu_unfold(); + ?> >
-%2$s'), 'profile.php', $user_identity) ?> -
+ | -%2$s'), 'profile.php', $user_identity); +if ( is_multisite() && is_super_admin() ) { + if ( !is_network_admin() ) + $links[10] = '| ' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . ''; + else + $links[10] = '| ' . __('Site Admin') . ''; +} +$links[15] = '| ' . __('Log Out') . ''; + +$links = apply_filters('admin_user_info_links', $links, $current_user); +ksort($links); + +echo implode(' ', $links); +?>