Skip to:
Content

BuddyPress.org

Changeset 7934


Ignore:
Timestamp:
02/19/2014 12:32:28 PM (11 years ago)
Author:
boonebgorges
Message:

Set default args for BP_Groups_Group::construct()

Must ensure that the 'populate_extras' param defaults to true when the class
is instantiated directly.

Fixes member counts in navigation.

Fixes #5411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r7903 r7934  
    161161     */
    162162    public function __construct( $id = null, $args = array() ) {
    163         $this->args = $args;
     163        $this->args = wp_parse_args( $args, array(
     164            'populate_extras' => true,
     165        ) );
    164166
    165167        if ( !empty( $id ) ) {
Note: See TracChangeset for help on using the changeset viewer.