Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/12/2008 11:58:11 PM (17 years ago)
Author:
apeatling
Message:

Fixed catch-uri functions so that BuddyPress no longer has to be installed in the root of a site.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r391 r392  
    302302
    303303function bp_loggedinuser_link() {
    304     global $bp;
    305     echo bp_core_get_userlink( $bp['loggedin_userid'] );
     304    global $bp, $current_user;
     305   
     306    if ( $link = bp_core_get_userlink( $bp['loggedin_userid'] ) ) {
     307        echo $link;
     308    } else {
     309        $ud = get_userdata($current_user->ID);
     310        echo $ud->user_login;
     311    }
    306312}
    307313
Note: See TracChangeset for help on using the changeset viewer.