Fix profile link in admin bar. Props mellertime. Fixes #15022
git-svn-id: http://svn.automattic.com/wordpress/trunk@15693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da79c2a100
commit
6c47b193ac
|
@ -78,7 +78,7 @@ function wp_admin_bar_me_separator() {
|
|||
if ( !is_object( $wp_admin_bar ) )
|
||||
return false;
|
||||
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . 'wp-admin/profile.php' ) );
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . '/wp-admin/profile.php' ) );
|
||||
}
|
||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_me_separator', 10 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue