Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2020 07:33:55 PM (4 years ago)
Author:
boonebgorges
Message:

Convert BP_Core_Members_Template to accept array of arguments.

This changeset also eliminates the use of extract() in
BP_Core_Members_Template::__construct().

Props Mamaduka.

See #3797, #7999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r12663 r12692  
    401401
    402402    // Query for members and populate $members_template global.
    403     $members_template = new BP_Core_Members_Template(
    404         $r['type'],
    405         $r['page'],
    406         $r['per_page'],
    407         $r['max'],
    408         $r['user_id'],
    409         $r['search_terms'],
    410         $r['include'],
    411         $r['populate_extras'],
    412         $r['exclude'],
    413         $r['meta_key'],
    414         $r['meta_value'],
    415         $r['page_arg'],
    416         $r['member_type'],
    417         $r['member_type__in'],
    418         $r['member_type__not_in'],
    419         $r['xprofile_query']
    420     );
     403    $members_template = new BP_Core_Members_Template( $r );
    421404
    422405    /**
Note: See TracChangeset for help on using the changeset viewer.