mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
Correct the title used on the user dashboard.
Fixes #32754 Props johnjamesjacoby Built from https://develop.svn.wordpress.org/trunk@32917 git-svn-id: http://core.svn.wordpress.org/trunk@32888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8854256155
commit
3c7ea03cb0
@ -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, '…' );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32916';
|
$wp_version = '4.3-alpha-32917';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user