Skip to:
Content

BuddyPress.org

Ticket #5990: 5990.01.patch

File 5990.01.patch, 1006 bytes (added by r-a-y, 9 years ago)
  • src/bp-messages/bp-messages-template.php

     
    18341834 * @todo Add Messages meta?
    18351835 */
    18361836function bp_messages_embed() {
    1837         add_filter( 'embed_post_id', 'bp_get_message_thread_id' );
     1837        add_filter( 'embed_post_id', 'bp_get_the_thread_message_id' );
    18381838}
    1839 add_action( 'messages_box_loop_start', 'bp_messages_embed' );
     1839add_action( 'thread_loop_start', 'bp_messages_embed' );
  • src/bp-templates/bp-legacy/buddypress-functions.php

     
    12981298
    12991299                bp_thread_has_messages( array( 'thread_id' => (int) $_REQUEST['thread_id'] ) );
    13001300
     1301                bp_thread_the_message();
     1302
    13011303                if ( $thread_template->message_count % 2 == 1 ) {
    13021304                        $class = 'odd';
    13031305                } else {