Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/17/2013 05:37:21 PM (12 years ago)
Author:
r-a-y
Message:

Return contents instead of echoing during theme compat output buffer.

When using the 'bp_replace_the_content' filter, we need to return the
contents instead of echoing.

Thus, this commit changes all bp_buffer_template_part() calls to
return instead of echo.

Fixes #5156. Props ddean.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-screens.php

    r7298 r7386  
    217217     */
    218218    public function directory_content() {
    219         bp_buffer_template_part( 'forums/index' );
     219        return bp_buffer_template_part( 'forums/index', null, false );
    220220    }
    221221}
Note: See TracChangeset for help on using the changeset viewer.