Skip to:
Content

BuddyPress.org

Changeset 1739 for trunk/bp-xprofile.php


Ignore:
Timestamp:
08/31/2009 05:51:29 PM (17 years ago)
Author:
apeatling
Message:

Enabled support for users to appear in the root by defining 'BP_ENABLE_ROOT_PROFILES' as true in your wp-config.php file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1723 r1739  
    244244 */
    245245function xprofile_screen_display_profile() {
    246     global $bp, $is_new_friend;
     246    global $bp;
    247247
    248248    // If this is a first visit to a new friends profile, delete the friend accepted notifications for the
    249     // logged in user. $is_new_friend is set in bp-core/bp-core-catchuri.php in bp_core_set_uri_globals()
    250     if ( $is_new_friend )
     249    // logged in user, only if $_GET['new'] is set.
     250    if ( isset($_GET['new']) )
    251251        bp_core_delete_notifications_for_user_by_item_id( $bp->loggedin_user->id, $bp->displayed_user->id, 'friends', 'friendship_accepted' );
    252252   
    253     do_action( 'xprofile_screen_display_profile', $is_new_friend );
     253    do_action( 'xprofile_screen_display_profile', $_GET['new'] );
    254254    bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'profile/index' ) );
    255255}
Note: See TracChangeset for help on using the changeset viewer.