Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2021 08:43:39 PM (5 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-data-template.php

    r12955 r13108  
    149149                }
    150150
    151                 $r = wp_parse_args( $args, array(
    152                         'profile_group_id'       => false,
    153                         'user_id'                => false,
    154                         'member_type'            => 'any',
    155                         'hide_empty_groups'      => false,
    156                         'hide_empty_fields'      => false,
    157                         'fetch_fields'           => false,
    158                         'fetch_field_data'       => false,
    159                         'fetch_visibility_level' => false,
    160                         'exclude_groups'         => false,
    161                         'exclude_fields'         => false,
    162                         'hide_field_types'       => array(),
    163                         'signup_fields_only'     => false,
    164                         'update_meta_cache'      => true
    165                 ) );
     151                $r = bp_parse_args(
     152                        $args,
     153                        array(
     154                                'profile_group_id'       => false,
     155                                'user_id'                => false,
     156                                'member_type'            => 'any',
     157                                'hide_empty_groups'      => false,
     158                                'hide_empty_fields'      => false,
     159                                'fetch_fields'           => false,
     160                                'fetch_field_data'       => false,
     161                                'fetch_visibility_level' => false,
     162                                'exclude_groups'         => false,
     163                                'exclude_fields'         => false,
     164                                'hide_field_types'       => array(),
     165                                'signup_fields_only'     => false,
     166                                'update_meta_cache'      => true,
     167                        )
     168                );
    166169
    167170                $groups = bp_xprofile_get_groups( $r );
Note: See TracChangeset for help on using the changeset viewer.