Changeset 6340 for trunk/bp-messages/bp-messages-functions.php
- Timestamp:
- 09/17/2012 05:36:46 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-functions.php
r6093 r6340 69 69 foreach( (array) $recipients as $recipient ) { 70 70 $recipient = trim( $recipient ); 71 71 72 if ( empty( $recipient ) ) 72 73 continue; 73 74 75 $recipient_id = false; 76 77 // input was numeric 74 78 if ( is_numeric( $recipient ) ) { 79 // do a check against the user ID column first 75 80 if ( bp_core_get_core_userdata( (int) $recipient ) ) 76 81 $recipient_id = (int) $recipient; 82 83 // if that fails, check against the user_login / user_nicename column 84 else { 85 if ( bp_is_username_compatibility_mode() ) 86 $recipient_id = bp_core_get_userid( (int) $recipient ); 87 else 88 $recipient_id = bp_core_get_userid_from_nicename( (int) $recipient ); 89 } 77 90 78 91 } else {
Note: See TracChangeset
for help on using the changeset viewer.