- Timestamp:
- 08/07/2015 02:07:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r9951 r10038 29 29 * 30 30 * @since BuddyPress (1.0.0) 31 * @var object31 * @var array 32 32 */ 33 33 public $messages; … … 37 37 * 38 38 * @since BuddyPress (1.0.0) 39 * @var object39 * @var array 40 40 */ 41 41 public $recipients; … … 164 164 $this->messages = array_reverse( $this->messages ); 165 165 } 166 167 $last_message_index = count( $this->messages ) - 1; 168 $this->last_message_id = $this->messages[ $last_message_index ]->id; 169 $this->last_message_date = $this->messages[ $last_message_index ]->date_sent; 170 $this->last_sender_id = $this->messages[ $last_message_index ]->sender_id; 171 $this->last_message_subject = $this->messages[ $last_message_index ]->subject; 172 $this->last_message_content = $this->messages[ $last_message_index ]->message; 166 173 167 174 foreach ( (array) $this->messages as $key => $message ) {
Note: See TracChangeset
for help on using the changeset viewer.