Skip to:
Content

BuddyPress.org

Changeset 9187


Ignore:
Timestamp:
11/26/2014 06:09:27 AM (9 years ago)
Author:
r-a-y
Message:

Fix oEmbed in private messages.

oEmbed caching for private messages will be in the next commit.

See #5990.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r9183 r9187  
    20082008 */
    20092009function bp_messages_embed() {
    2010     add_filter( 'embed_post_id', 'bp_get_message_thread_id' );
    2011 }
    2012 add_action( 'messages_box_loop_start', 'bp_messages_embed' );
     2010    add_filter( 'embed_post_id', 'bp_get_the_thread_message_id' );
     2011}
     2012add_action( 'thread_loop_start', 'bp_messages_embed' );
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r9160 r9187  
    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';
Note: See TracChangeset for help on using the changeset viewer.