Skip to:
Content

BuddyPress.org

Changeset 12213


Ignore:
Timestamp:
09/04/2018 03:44:49 AM (6 years 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

Fixes #7960 (trunk)

File:
1 edited

Legend:

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

    r12207 r12213  
    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.