And i changed the admin bar .php , see please:
function wp_admin_bar_my_account_item( $wp_admin_bar ) {
$user_id = get_current_user_id();
$current_user = wp_get_current_user();
$userLogin=$current_user->user_login;
$userUrl=get_bloginfo(‘wpurl’).’/’.$userLogin;
$profile_url = get_edit_profile_url( $user_id );
if ( ! $user_id )
return;
$avatar = get_avatar( $user_id, 16 );
$howdy = sprintf( __(‘%1$s’), $current_user->display_name );
$class = empty( $avatar ) ? ” : ‘with-avatar’;
$wp_admin_bar->add_menu( array(
‘id’ => ‘my-account’,
‘parent’ => ‘top-secondary’,
‘title’ => $howdy . $avatar,
‘href’ => ‘<?php echo $userUrl ?>’,
‘meta’ => array(
‘class’ => $class,
‘title’ => __(‘My Account’),
),
) );
}
What will happen if i update my theme? please