Make WordPress Core

Changeset 16474


Ignore:
Timestamp:
11/18/2010 11:02:52 PM (13 years ago)
Author:
ryan
Message:

Titles for network admin and global dashboard. see #15477

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r16457 r16474  
    1414$title = esc_html( strip_tags( $title ) );
    1515
    16 $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, get_bloginfo( 'name' ) );
     16if ( is_network_admin() )
     17    $admin_title = __( 'Network Admin' );
     18elseif ( is_user_admin() )
     19    $admin_title = __( 'Global Dashboard' );
     20else
     21    $admin_title = get_bloginfo( 'name' );
     22
     23if ( $admin_title == $title )
     24    $admin_title = sprintf( __( '%1$s — WordPress' ), $title );
     25else
     26    $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title );
     27
    1728$admin_title = apply_filters( 'admin_title', $admin_title, $title );
    1829
     
    2132
    2233// Save the ID of the last blog admin area visited if super admin.
    23 if ( is_multisite() && !is_network_admin() && is_super_admin() ) {
     34if ( is_multisite() && is_blog_admin() && is_super_admin() ) {
    2435    $last_blog = get_user_option('last-blog-admin-visited');
    2536    if ( $last_blog != $blog_id )
     
    103114
    104115if ( is_network_admin() )
    105     $blog_name = esc_html($current_site->site_name);
     116    $blog_name = sprintf( __('%s Network Admin'), esc_html($current_site->site_name) );
    106117elseif ( is_user_admin() )
    107     $blog_name = __('Global Dashboard');
     118    $blog_name = sprintf( __('%s Global Dashboard'), esc_html($current_site->site_name) );
    108119else
    109120    $blog_name = get_bloginfo('name', 'display');
  • trunk/wp-admin/network/index.php

    r16272 r16474  
    2020    wp_die( __( 'You do not have permission to access this page.' ) );
    2121
    22 $title = __( 'Network Dashboard' );
     22$title = __( 'Dashboard' );
    2323$parent_file = 'index.php';
    2424
Note: See TracChangeset for help on using the changeset viewer.