Skip to:
Content

BuddyPress.org

Ticket #5176: 5175.patch

File 5175.patch, 1.7 KB (added by trishasalas, 12 years ago)
  • bp-messages/bp-messages-template.php

    Property changes on: .
    ___________________________________________________________________
    Modified: svn:ignore
       - .DS_Store
    .DS_store
    .gitignore
    
       + .DS_Store
    .DS_store
    .gitignore
    5006.diff
    
     
    239239                return apply_filters( 'bp_get_message_thread_excerpt', strip_tags( bp_create_excerpt( $messages_template->thread->last_message_content, 75 ) ) );
    240240        }
    241241
     242function bp_message_thread_content() {
     243        echo bp_get_message_thread_content();
     244}
     245        function bp_get_message_thread_content() {
     246                global $messages_template;
     247
     248                return apply_filters( 'bp_get_message_thread_excerpt',  $messages_template->thread->last_message_content );
     249        }
     250
    242251function bp_message_thread_from() {
    243252        echo bp_get_message_thread_from();
    244253}
     
    850859                return apply_filters( 'bp_get_the_thread_recipients', implode( ', ', $recipient_links ) );
    851860        }
    852861
    853 /**
    854  * Echoes the ID of the current message in the thread
    855  *
    856  * @since BuddyPress (1.9)
    857  */
    858 function bp_the_thread_message_id() {
    859         echo bp_get_the_thread_message_id();
    860 }
    861         /**
    862          * Gets the ID of the current message in the thread
    863          *
    864          * @since BuddyPress (1.9)
    865          * @return int
    866          */
    867         function bp_get_the_thread_message_id() {
    868                 global $thread_template;
    869 
    870                 $thread_message_id = isset( $thread_template->message->id ) ? (int) $thread_template->message->id : null;
    871                 return apply_filters( 'bp_get_the_thread_message_id', $thread_message_id );
    872         }
    873 
    874862function bp_the_thread_message_alt_class() {
    875863        echo bp_get_the_thread_message_alt_class();
    876864}