Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/17/2013 05:37:21 PM (11 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-activity/bp-activity-screens.php

    r7212 r7386  
    413413     */
    414414    public function directory_content() {
    415         bp_buffer_template_part( 'activity/index' );
     415        return bp_buffer_template_part( 'activity/index', null, false );
    416416    }
    417417
     
    466466     */
    467467    public function single_dummy_content() {
    468         bp_buffer_template_part( 'activity/single/home' );
     468        return bp_buffer_template_part( 'activity/single/home', null, false );
    469469    }
    470470}
Note: See TracChangeset for help on using the changeset viewer.