Make WordPress Core

Ticket #43633: 43633.4.diff

File 43633.4.diff, 995 bytes (added by sabernhardt, 2 years ago)

43633.3 without adding aria-hidden

  • src/wp-includes/admin-bar.php

     
    294294                $user_info .= "<span class='username'>{$current_user->user_login}</span>";
    295295        }
    296296
     297        if ( false !== $profile_url ) {
     298                $user_info .= "<span class='display-name edit-profile-link'>" . __( 'Edit Profile' ) . "</span>";
     299        }
     300
    297301        $wp_admin_bar->add_node(
    298302                array(
    299303                        'parent' => 'user-actions',
     
    300304                        'id'     => 'user-info',
    301305                        'title'  => $user_info,
    302306                        'href'   => $profile_url,
    303                         'meta'   => array(
    304                                 'tabindex' => -1,
    305                         ),
    306307                )
    307308        );
    308309
    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 
    320310        $wp_admin_bar->add_node(
    321311                array(
    322312                        'parent' => 'user-actions',