Changeset 3140 for branches/1.2/bp-messages.php
- Timestamp:
- 07/21/2010 07:02:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-messages.php
r3111 r3140 420 420 $message->date_sent = $date_sent; 421 421 422 / * If we have a thread ID, use the existing recipients, otherwise use the recipients passed */422 // If we have a thread ID, use the existing recipients, otherwise use the recipients passed 423 423 if ( $thread_id ) { 424 424 $thread = new BP_Messages_Thread( $thread_id ); 425 425 $message->recipients = $thread->get_recipients(); 426 426 427 // Strip the sender from the recipient list if they exist 428 if ( $key = array_search( $sender_id, $message->recipients ) ) 429 unset( $message->recipients[$key] ); 430 427 431 if ( empty( $message->subject ) ) 428 432 $message->subject = sprintf( __( 'Re: %s', 'buddypress' ), $thread->messages[0]->subject ); 429 433 434 // No thread ID, so make some adjustments 430 435 } else { 431 436 if ( empty( $recipients ) )
Note: See TracChangeset
for help on using the changeset viewer.