Ticket #5021: 5021.01.patch
File 5021.01.patch, 1.1 KB (added by , 11 years ago) |
---|
-
bp-core/bp-core-template-loader.php
function bp_get_template_stack() { 200 200 * @return string 201 201 */ 202 202 function bp_buffer_template_part( $slug, $name = null, $echo = true ) { 203 // Remove all filters from the_content 204 bp_remove_all_filters( 'the_content' ); 205 203 206 ob_start(); 204 207 205 208 // Remove 'bp_replace_the_content' filter to prevent infinite loops -
bp-core/bp-core-theme-compatibility.php
function bp_template_include_theme_compat( $template = '' ) { 521 521 */ 522 522 if ( bp_is_theme_compat_active() ) { 523 523 524 // Remove all filters from the_content525 bp_remove_all_filters( 'the_content' );526 527 524 // Add a filter on the_content late, which we will later remove 528 525 if ( ! has_filter( 'the_content', 'bp_replace_the_content' ) ) { 529 526 add_filter( 'the_content', 'bp_replace_the_content' );