X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..refs/tags/wordpress-3.0.2-scripts:/wp-admin/admin-header.php diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 33e88732..61ba38b2 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -7,64 +7,56 @@ */ @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 = wp_specialchars( strip_tags( $title ) ); +$title = esc_html( strip_tags( $title ) ); wp_user_settings(); +wp_menu_unfold(); ?> > -<?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress +<?php echo $title; ?> ‹ <?php bloginfo('name') ?> — WordPress - +"> +
@@ -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,32 +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); +?>