diff --git bp-core/bp-core-template-loader.php bp-core/bp-core-template-loader.php
index 334a449..a00069a 100644
|
|
|
function bp_buffer_template_part( $slug, $name = null, $echo = true ) { |
| 207 | 207 | |
| 208 | 208 | bp_get_template_part( $slug, $name ); |
| 209 | 209 | |
| 210 | | // Remove 'bp_replace_the_content' filter to prevent infinite loops |
| 211 | | add_filter( 'the_content', 'bp_replace_the_content' ); |
| 212 | | |
| 213 | 210 | // Get the output buffer contents |
| 214 | 211 | $output = ob_get_contents(); |
| 215 | 212 | |
diff --git bp-core/bp-core-theme-compatibility.php bp-core/bp-core-theme-compatibility.php
index 3594b49..fe46e6f 100644
|
|
|
function bp_replace_the_content( $content = '' ) { |
| 588 | 588 | */ |
| 589 | 589 | function bp_theme_compat_main_loop_start() { |
| 590 | 590 | |
| | 591 | // Prevent recursion |
| | 592 | remove_action( 'loop_start', 'bp_theme_compat_main_loop_start', 9999 ); |
| | 593 | |
| 591 | 594 | // Bail if not the main query |
| 592 | 595 | if ( ! in_the_loop() ) |
| 593 | 596 | return; |