diff --git bp-messages/bp-messages-template.php bp-messages/bp-messages-template.php
index 80d2ba5..2137c25 100644
|
|
|
function bp_message_thread_excerpt() { |
| 239 | 239 | return apply_filters( 'bp_get_message_thread_excerpt', strip_tags( bp_create_excerpt( $messages_template->thread->last_message_content, 75 ) ) ); |
| 240 | 240 | } |
| 241 | 241 | |
| | 242 | /** |
| | 243 | * Echo the thread's last message content |
| | 244 | * |
| | 245 | * @since BuddyPress (1.9) |
| | 246 | */ |
| | 247 | function bp_message_thread_content() { |
| | 248 | echo bp_get_message_thread_content(); |
| | 249 | } |
| | 250 | /** |
| | 251 | * Get the thread's last message content |
| | 252 | * |
| | 253 | * @since BuddyPress (1.9) |
| | 254 | * @return string The raw content of the last message in the thread |
| | 255 | */ |
| | 256 | function bp_get_message_thread_content() { |
| | 257 | global $messages_template; |
| | 258 | |
| | 259 | return apply_filters( 'bp_get_message_thread_content', $messages_template->thread->last_message_content ); |
| | 260 | } |
| | 261 | |
| 242 | 262 | function bp_message_thread_from() { |
| 243 | 263 | echo bp_get_message_thread_from(); |
| 244 | 264 | } |