Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2021 08:43:39 PM (3 years ago)
Author:
espellcaste
Message:

Update all references from wp_parse_args to bp_parse_args.

Also, add WPCS improvements to align bp_parse_args correctly.

Props imath
Fixes #8564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r12885 r13108  
    244244     *
    245245     * @param array $args {
    246      *  Array of optional arguments:
     246     *      Array of optional arguments.
    247247     *      @type int          $profile_group_id   Limit results to a single profile group.
    248248     *      @type int          $user_id            Required if you want to load a specific user's data.
     
    272272
    273273        // Parse arguments.
    274         $r = wp_parse_args( $args, array(
    275             'profile_group_id'       => false,
    276             'user_id'                => bp_displayed_user_id(),
    277             'member_type'            => false,
    278             'hide_empty_groups'      => false,
    279             'hide_empty_fields'      => false,
    280             'fetch_fields'           => false,
    281             'fetch_field_data'       => false,
    282             'fetch_visibility_level' => false,
    283             'exclude_groups'         => false,
    284             'exclude_fields'         => false,
    285             'hide_field_types'       => array(),
    286             'update_meta_cache'      => true,
    287             'signup_fields_only'     => false,
    288         ) );
     274        $r = bp_parse_args(
     275            $args,
     276            array(
     277                'profile_group_id'       => false,
     278                'user_id'                => bp_displayed_user_id(),
     279                'member_type'            => false,
     280                'hide_empty_groups'      => false,
     281                'hide_empty_fields'      => false,
     282                'fetch_fields'           => false,
     283                'fetch_field_data'       => false,
     284                'fetch_visibility_level' => false,
     285                'exclude_groups'         => false,
     286                'exclude_fields'         => false,
     287                'hide_field_types'       => array(),
     288                'update_meta_cache'      => true,
     289                'signup_fields_only'     => false,
     290            )
     291        );
    289292
    290293        // Keep track of object IDs for cache-priming.
Note: See TracChangeset for help on using the changeset viewer.