Correct the title used on the user dashboard.

Fixes #32754
Props johnjamesjacoby


git-svn-id: https://develop.svn.wordpress.org/trunk@32917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-06-24 00:36:40 +00:00
parent 7192f7e9cf
commit 06ed4c4d0f
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ $title = esc_html( strip_tags( $title ) );
if ( is_network_admin() ) if ( is_network_admin() )
$admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); $admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
elseif ( is_user_admin() ) elseif ( is_user_admin() )
$admin_title = sprintf( __( 'Global Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); $admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
else else
$admin_title = get_bloginfo( 'name' ); $admin_title = get_bloginfo( 'name' );

View File

@ -273,7 +273,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
if ( is_network_admin() ) { if ( is_network_admin() ) {
$blogname = sprintf( __('Network Admin: %s'), esc_html( get_current_site()->site_name ) ); $blogname = sprintf( __('Network Admin: %s'), esc_html( get_current_site()->site_name ) );
} elseif ( is_user_admin() ) { } elseif ( is_user_admin() ) {
$blogname = sprintf( __('Global Dashboard: %s'), esc_html( get_current_site()->site_name ) ); $blogname = sprintf( __('User Dashboard: %s'), esc_html( get_current_site()->site_name ) );
} }
$title = wp_html_excerpt( $blogname, 40, '…' ); $title = wp_html_excerpt( $blogname, 40, '…' );