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-groups/bp-groups-screens.php

    r7343 r7386  
    10491049     */
    10501050    public function directory_content() {
    1051         bp_buffer_template_part( 'groups/index' );
     1051        return bp_buffer_template_part( 'groups/index', null, false );
    10521052    }
    10531053
     
    11101110     */
    11111111    public function create_content() {
    1112         bp_buffer_template_part( 'groups/create' );
     1112        return bp_buffer_template_part( 'groups/create', null, false );
    11131113    }
    11141114
     
    11701170     */
    11711171    public function single_content() {
    1172         bp_buffer_template_part( 'groups/single/home' );
     1172        return bp_buffer_template_part( 'groups/single/home', null, false );
    11731173    }
    11741174}
Note: See TracChangeset for help on using the changeset viewer.