Skip to:
Content

bbPress.org

Ticket #2602: 2602.diff

File 2602.diff, 748 bytes (added by tharsheblows, 6 years ago)

adds back in autoembed filter to the_content

  • src/includes/core/theme-compat.php

     
    788788        } elseif ( bbp_is_theme_compat_active() ) {
    789789                bbp_remove_all_filters( 'the_content' );
    790790
     791                add_filter( 'the_content', 'bbp_autoembed');
     792
    791793                $template = bbp_get_theme_compat_templates();
    792794        }
    793795
     
    794796        return apply_filters( 'bbp_template_include_theme_compat', $template );
    795797}
    796798
     799function bbp_autoembed( $the_content ){
     800        $bbp_embed = new WP_Embed;
     801        return $bbp_embed->autoembed( $the_content );
     802}
     803
    797804/** Helpers *******************************************************************/
    798805
    799806/**