Skip to:
Content

BuddyPress.org


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

    r11645 r13108  
    6060        }
    6161
    62         $r = bp_parse_args( $raw_properties, array(
    63             'type'  => 'text',
    64             'value' => bp_get_the_profile_field_edit_value(),
    65         ) ); ?>
     62        $r = bp_parse_args(
     63            $raw_properties,
     64            array(
     65                'type'  => 'text',
     66                'value' => bp_get_the_profile_field_edit_value(),
     67            )
     68        );
     69        ?>
    6670
    6771        <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
     
    9599    public function admin_field_html( array $raw_properties = array() ) {
    96100
    97         $r = bp_parse_args( $raw_properties, array(
    98             'type' => 'text'
    99         ) ); ?>
     101        $r = bp_parse_args(
     102            $raw_properties,
     103            array(
     104                'type' => 'text',
     105            )
     106        );
     107        ?>
    100108
    101109        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
Note: See TracChangeset for help on using the changeset viewer.