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-field-type-checkbox-acceptance.php

    r12882 r13108  
    244244    public function edit_field_options_html( array $args = array() ) {
    245245        $field_id            = (int) $this->field_obj->id;
    246         $params              = wp_parse_args( $args, array( 'user_id' => bp_displayed_user_id() ) );
     246        $params              = bp_parse_args(
     247            $args,
     248            array(
     249                'user_id' => bp_displayed_user_id(),
     250            )
     251        );
    247252        $checkbox_acceptance = (int) maybe_unserialize( \BP_XProfile_ProfileData::get_value_byid( $field_id, $params['user_id'] ) );
    248253
Note: See TracChangeset for help on using the changeset viewer.