Skip to:
Content

BuddyPress.org

Ticket #5176: 5176.02.patch

File 5176.02.patch, 1009 bytes (added by boonebgorges, 11 years ago)
  • bp-messages/bp-messages-template.php

    diff --git bp-messages/bp-messages-template.php bp-messages/bp-messages-template.php
    index 80d2ba5..2137c25 100644
    function bp_message_thread_excerpt() { 
    239239                return apply_filters( 'bp_get_message_thread_excerpt', strip_tags( bp_create_excerpt( $messages_template->thread->last_message_content, 75 ) ) );
    240240        }
    241241
     242/**
     243 * Echo the thread's last message content
     244 *
     245 * @since BuddyPress (1.9)
     246 */
     247function 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
    242262function bp_message_thread_from() {
    243263        echo bp_get_message_thread_from();
    244264}