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:
dd32 2010-10-04 03:04:28 +00:00
parent da79c2a100
commit 6c47b193ac
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ function wp_admin_bar_me_separator() {
if ( !is_object( $wp_admin_bar ) ) if ( !is_object( $wp_admin_bar ) )
return false; 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 ); add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_me_separator', 10 );