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:
parent
7192f7e9cf
commit
06ed4c4d0f
@ -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' );
|
||||||
|
|
||||||
|
@ -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, '…' );
|
||||||
|
Loading…
Reference in New Issue
Block a user