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

    r7353 r7386  
    157157     */
    158158    public function directory_content() {
    159         bp_buffer_template_part( 'blogs/index' );
     159        return bp_buffer_template_part( 'blogs/index', null, false );
    160160    }
    161161
     
    218218     */
    219219    public function create_content() {
    220         bp_buffer_template_part( 'blogs/create' );
     220        return bp_buffer_template_part( 'blogs/create', null, false );
    221221    }
    222222}
Note: See TracChangeset for help on using the changeset viewer.