Skip to:
Content

Changeset 7386


Ignore:
Timestamp:
09/17/2013 05:37:21 PM (5 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.

Location:
trunk
Files:
5 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}
  • 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}
  • 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}
  • 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}
  • 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.