Skip to:
Content

BuddyPress.org

Ticket #875: bp-core-adminbar.php.patch

File bp-core-adminbar.php.patch, 772 bytes (added by johnjamesjacoby, 15 years ago)

Fix bp_adminbar_account_menu, add bp_adminbar_my_account_link

  • bp-core-adminbar.php

     
    4343        }
    4444}
    4545
     46// **** "My Account" Link ******
     47function bp_adminbar_my_account_link () {
     48        global $bp;
     49        return apply_filters( 'bp_adminbar_my_account_link', bp_core_get_userurl($bp->loggedin_user->id) );
     50}
     51
    4652// **** "My Account" Menu ******
    4753function bp_adminbar_account_menu() {
    4854        global $bp;
     
    5258
    5359        if ( is_user_logged_in() ) {
    5460               
    55                 echo '<li id="bp-adminbar-account-menu"><a href="">';
     61                echo '<li id="bp-adminbar-account-menu"><a href="' . bp_adminbar_my_account_link() . '">';
    5662       
    5763                echo __( 'My Account', 'buddypress' ) . '</a>';
    5864                echo '<ul>';