Fix profile link in admin bar. Props mellertime. Fixes #15022

git-svn-id: https://develop.svn.wordpress.org/trunk@15693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-10-04 03:04:28 +00:00
parent b5e7866d16
commit b10f73b4bc

View File

@ -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 );