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

    r7303 r7386  
    370370     */
    371371    public function directory_content() {
    372         bp_buffer_template_part( 'members/index' );
     372        return bp_buffer_template_part( 'members/index', null, false );
    373373    }
    374374
     
    430430     */
    431431    public function single_dummy_content() {
    432         bp_buffer_template_part( 'members/single/home' );
     432        return bp_buffer_template_part( 'members/single/home', null, false );
    433433    }
    434434}
     
    547547    public function dummy_content() {
    548548        if ( bp_is_register_page() ) {
    549             bp_buffer_template_part( 'members/register' );
     549            return bp_buffer_template_part( 'members/register', null, false );
    550550        } else {
    551             bp_buffer_template_part( 'members/activate' );
     551            return bp_buffer_template_part( 'members/activate', null, false );
    552552        }
    553553    }
Note: See TracChangeset for help on using the changeset viewer.