Changeset 4902
- Timestamp:
- 07/30/2011 11:25:01 AM (14 years ago)
- Location:
- trunk/bp-messages
- Files:
-
- 2 edited
-
bp-messages-actions.php (modified) (1 diff)
-
bp-messages-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-actions.php
r4842 r4902 10 10 11 11 function messages_action_view_message() { 12 global $thread_id ;12 global $thread_id, $bp; 13 13 14 14 if ( !bp_is_messages_component() || !bp_is_current_action( 'view' ) ) -
trunk/bp-messages/bp-messages-functions.php
r4825 r4902 56 56 $message->subject = __( 'No Subject', 'buddypress' ); 57 57 58 $recipient_ids = array(); 58 $recipient_ids = array(); 59 60 // Invalid recipients are added to an array, for future enhancements 61 $invalid_recipients = array(); 59 62 60 63 // Loop the recipients and convert all usernames to user_ids where needed … … 66 69 if ( is_numeric( $recipient ) ) { 67 70 if ( bp_core_get_core_userdata( (int) $recipient ) ) 68 $recipient_id s[]= (int) $recipient;71 $recipient_id = (int) $recipient; 69 72 70 73 } else { … … 73 76 else 74 77 $recipient_id = bp_core_get_userid_from_nicename( $recipient ); 75 78 } 79 80 if ( !$recipient_id ) 81 $invalid_recipients[] = $recipient; 82 else 76 83 $recipient_ids[] = (int) $recipient_id; 77 }78 84 } 79 85
Note: See TracChangeset
for help on using the changeset viewer.