Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/10/2018 12:49:30 PM (6 years ago)
Author:
djpaul
Message:

Groups: use bp_parse_args() in low-level parts of the codebase.

These replace calls to wp_parse_args(). Our version supports a before/after filter, giving flexibility to third-party developers.

Fixes #7529

Props dcavins, espellcaste.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-member-query.php

    r11792 r11805  
    8888        // values passed to the constructor will, as usual, override
    8989        // these defaults).
    90         $this->query_vars = wp_parse_args( $this->query_vars, array(
     90        $this->query_vars = bp_parse_args( $this->query_vars, array(
    9191            'group_id'     => 0,
    9292            'group_role'   => array( 'member' ),
     
    9595            'inviter_id'   => null,
    9696            'type'         => 'last_joined',
    97         ) );
     97        ), 'bp_group_member_query_get_include_ids' );
    9898
    9999        $group_member_ids = $this->get_group_member_ids();
Note: See TracChangeset for help on using the changeset viewer.