Skip to:
Content

BuddyPress.org

Changeset 12212


Ignore:
Timestamp:
09/04/2018 03:43:04 AM (15 months ago)
Author:
imath
Message:

BP Nouveau: make sure to instantiate a friends & group members object

When displaying a multicolumn loop members for friends or group members, we need to instantiate a new object before adding properties to it.

Props shubh14

See #7960 (branch 3.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12206 r12212  
    574574                }
    575575
     576                if ( ! isset( $bp_nouveau->{$component} ) ) {
     577                    $bp_nouveau->{$component} = new stdClass;
     578                }
     579
    576580                // Set the global for a later use.
    577581                $bp_nouveau->{$component}->loop_layout = $layout_prefs;
Note: See TracChangeset for help on using the changeset viewer.