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

    r11645 r13108  
    6161                }
    6262
    63                 $r = bp_parse_args( $raw_properties, array(
    64                         'type'  => 'number',
    65                         'value' =>  bp_get_the_profile_field_edit_value()
    66                 ) ); ?>
     63                $r = bp_parse_args(
     64                        $raw_properties,
     65                        array(
     66                                'type'  => 'number',
     67                                'value' => bp_get_the_profile_field_edit_value(),
     68                        )
     69                );
     70                ?>
    6771
    6872                <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
     
    9599         */
    96100        public function admin_field_html( array $raw_properties = array() ) {
    97                 $r = bp_parse_args( $raw_properties, array(
    98                         'type' => 'number'
    99                 ) ); ?>
     101                $r = bp_parse_args(
     102                        $raw_properties,
     103                        array(
     104                                'type' => 'number',
     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.