Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/24/2011 12:33:51 PM (15 years ago)
Author:
djpaul
Message:

Fix at-notifications to work when BP_ENABLE_USERNAME_COMPATIBILITY_MODE is not set and user_nicename != user_login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-notifications.php

    r4144 r4277  
    2121
    2222        foreach( (array)$usernames as $username ) {
    23                 if ( !$receiver_user_id = bp_core_get_userid( $username ) )
     23                if ( defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) )
     24                        $receiver_user_id = bp_core_get_userid( $username );
     25                else
     26                        $receiver_user_id = bp_core_get_userid_from_nicename( $username );
     27
     28                if ( empty( $receiver_user_id ) )
    2429                        continue;
    2530
Note: See TracChangeset for help on using the changeset viewer.