Ticket #2602: 2602.diff
File 2602.diff, 748 bytes (added by , 11 years ago) |
---|
-
src/includes/core/theme-compat.php
788 788 } elseif ( bbp_is_theme_compat_active() ) { 789 789 bbp_remove_all_filters( 'the_content' ); 790 790 791 add_filter( 'the_content', 'bbp_autoembed'); 792 791 793 $template = bbp_get_theme_compat_templates(); 792 794 } 793 795 … … 794 796 return apply_filters( 'bbp_template_include_theme_compat', $template ); 795 797 } 796 798 799 function bbp_autoembed( $the_content ){ 800 $bbp_embed = new WP_Embed; 801 return $bbp_embed->autoembed( $the_content ); 802 } 803 797 804 /** Helpers *******************************************************************/ 798 805 799 806 /**