Skip to:
Content

BuddyPress.org

Ticket #5021: 5021.01.patch

File 5021.01.patch, 1.1 KB (added by r-a-y, 11 years ago)
  • bp-core/bp-core-template-loader.php

    function bp_get_template_stack() { 
    200200 * @return string
    201201 */
    202202function bp_buffer_template_part( $slug, $name = null, $echo = true ) {
     203        // Remove all filters from the_content
     204        bp_remove_all_filters( 'the_content' );
     205
    203206        ob_start();
    204207
    205208        // Remove 'bp_replace_the_content' filter to prevent infinite loops
  • bp-core/bp-core-theme-compatibility.php

    function bp_template_include_theme_compat( $template = '' ) { 
    521521         */
    522522        if ( bp_is_theme_compat_active() ) {
    523523
    524                 // Remove all filters from the_content
    525                 bp_remove_all_filters( 'the_content' );
    526 
    527524                // Add a filter on the_content late, which we will later remove
    528525                if ( ! has_filter( 'the_content', 'bp_replace_the_content' ) ) {
    529526                        add_filter( 'the_content', 'bp_replace_the_content' );