Ticket #43633: 43633.4.diff
File 43633.4.diff, 995 bytes (added by , 2 years ago) |
---|
-
src/wp-includes/admin-bar.php
294 294 $user_info .= "<span class='username'>{$current_user->user_login}</span>"; 295 295 } 296 296 297 if ( false !== $profile_url ) { 298 $user_info .= "<span class='display-name edit-profile-link'>" . __( 'Edit Profile' ) . "</span>"; 299 } 300 297 301 $wp_admin_bar->add_node( 298 302 array( 299 303 'parent' => 'user-actions', … … 300 304 'id' => 'user-info', 301 305 'title' => $user_info, 302 306 'href' => $profile_url, 303 'meta' => array(304 'tabindex' => -1,305 ),306 307 ) 307 308 ); 308 309 309 if ( false !== $profile_url ) {310 $wp_admin_bar->add_node(311 array(312 'parent' => 'user-actions',313 'id' => 'edit-profile',314 'title' => __( 'Edit Profile' ),315 'href' => $profile_url,316 )317 );318 }319 320 310 $wp_admin_bar->add_node( 321 311 array( 322 312 'parent' => 'user-actions',