Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/16/2014 09:36:18 PM (12 years ago)
Author:
boonebgorges
Message:

Normalize whitespace in bp_has_groups() parameter stack

File:
1 edited

Legend:

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

    r7894 r7897  
    436436
    437437        $defaults = array(
    438                 'type'            => false,    // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts
    439                 'order'           => 'DESC',   // 'ASC' or 'DESC'
    440                 'orderby'         => 'date_created', // date_created, last_activity, total_member_count, name, random
    441                 'user_id'         => false,    // Pass a user_id to limit to only groups that this user is a member of
    442                 'include'         => false,    // Only include these specific groups (group_ids)
    443                 'exclude'         => false,    // Do not include these specific groups (group_ids)
    444                 'search_terms'    => false,    // Limit to groups that match these search terms
    445                 'meta_query'      => false,    // Filter by groupmeta. See WP_Meta_Query for syntax
    446                 'show_hidden'     => false,    // Show hidden groups to non-admins
    447                 'per_page'        => 20,       // The number of results to return per page
    448                 'page'            => 1,        // The page to return if limiting per page
    449                 'populate_extras' => true,     // Fetch meta such as is_banned and is_member
     438                'type'              => false,    // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts
     439                'order'             => 'DESC',   // 'ASC' or 'DESC'
     440                'orderby'           => 'date_created', // date_created, last_activity, total_member_count, name, random
     441                'user_id'           => false,    // Pass a user_id to limit to only groups that this user is a member of
     442                'include'           => false,    // Only include these specific groups (group_ids)
     443                'exclude'           => false,    // Do not include these specific groups (group_ids)
     444                'search_terms'      => false,    // Limit to groups that match these search terms
     445                'meta_query'        => false,    // Filter by groupmeta. See WP_Meta_Query for syntax
     446                'show_hidden'       => false,    // Show hidden groups to non-admins
     447                'per_page'          => 20,       // The number of results to return per page
     448                'page'              => 1,        // The page to return if limiting per page
     449                'populate_extras'   => true,     // Fetch meta such as is_banned and is_member
    450450                'update_meta_cache' => true,   // Pre-fetch groupmeta for queried groups
    451451        );
     
    454454
    455455        $groups = BP_Groups_Group::get( array(
    456                 'type'            => $r['type'],
    457                 'user_id'         => $r['user_id'],
    458                 'include'         => $r['include'],
    459                 'exclude'         => $r['exclude'],
    460                 'search_terms'    => $r['search_terms'],
    461                 'meta_query'      => $r['meta_query'],
    462                 'show_hidden'     => $r['show_hidden'],
    463                 'per_page'        => $r['per_page'],
    464                 'page'            => $r['page'],
    465                 'populate_extras' => $r['populate_extras'],
     456                'type'              => $r['type'],
     457                'user_id'           => $r['user_id'],
     458                'include'           => $r['include'],
     459                'exclude'           => $r['exclude'],
     460                'search_terms'      => $r['search_terms'],
     461                'meta_query'        => $r['meta_query'],
     462                'show_hidden'       => $r['show_hidden'],
     463                'per_page'          => $r['per_page'],
     464                'page'              => $r['page'],
     465                'populate_extras'   => $r['populate_extras'],
    466466                'update_meta_cache' => $r['update_meta_cache'],
    467                 'order'           => $r['order'],
    468                 'orderby'         => $r['orderby'],
     467                'order'             => $r['order'],
     468                'orderby'           => $r['orderby'],
    469469        ) );
    470470
Note: See TracChangeset for help on using the changeset viewer.