~canonical-sysadmins/wordpress/4.3.1

« back to all changes in this revision

Viewing changes to wp-admin/admin-header.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
if ( ! defined( 'WP_ADMIN' ) )
11
11
        require_once( dirname( __FILE__ ) . '/admin.php' );
12
12
 
13
 
// In case admin-header.php is included in a function.
 
13
/**
 
14
 * In case admin-header.php is included in a function.
 
15
 *
 
16
 * @global string    $title
 
17
 * @global string    $hook_suffix
 
18
 * @global WP_Screen $current_screen
 
19
 * @global WP_Locale $wp_locale
 
20
 * @global string    $pagenow
 
21
 * @global string    $wp_version
 
22
 * @global string    $update_title
 
23
 * @global int       $total_update_count
 
24
 * @global string    $parent_file
 
25
 */
14
26
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
15
27
        $update_title, $total_update_count, $parent_file;
16
28
 
24
36
if ( is_network_admin() )
25
37
        $admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
26
38
elseif ( is_user_admin() )
27
 
        $admin_title = sprintf( __( 'Global Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
 
39
        $admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
28
40
else
29
41
        $admin_title = get_bloginfo( 'name' );
30
42