Ticket #37949: 37949.patch
| File 37949.patch, 1.4 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/admin-bar.php
107 107 * @param WP_Admin_Bar $wp_admin_bar 108 108 */ 109 109 function wp_admin_bar_wp_menu( $wp_admin_bar ) { 110 if ( current_user_can( 'read' ) ) { 111 $about_url = self_admin_url( 'about.php' ); 112 } else { 113 $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); 114 } 115 110 116 $wp_admin_bar->add_menu( array( 111 117 'id' => 'wp-logo', 112 118 'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>', 113 'href' => self_admin_url( 'about.php' ),119 'href' => $about_url, 114 120 ) ); 115 121 116 122 if ( is_user_logged_in() ) { … … 119 125 'parent' => 'wp-logo', 120 126 'id' => 'about', 121 127 'title' => __('About WordPress'), 122 'href' => self_admin_url( 'about.php' ),128 'href' => $about_url, 123 129 ) ); 124 130 } 125 131 … … 294 300 } 295 301 296 302 if ( is_network_admin() ) { 297 /* translators: %s: site name */ 303 /* translators: %s: site name */ 298 304 $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); 299 305 } elseif ( is_user_admin() ) { 300 /* translators: %s: site name */ 306 /* translators: %s: site name */ 301 307 $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); 302 308 } 303 309