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-wordpress-biography.php

    r12978 r13108  
    112112        do_action( bp_get_the_profile_field_errors_action() );
    113113
    114         $r = wp_parse_args( $raw_properties, array(
    115             'cols' => 40,
    116             'rows' => 5,
    117         ) );
     114        $r = bp_parse_args(
     115            $raw_properties,
     116            array(
     117                'cols' => 40,
     118                'rows' => 5,
     119            )
     120        );
    118121        ?>
    119122
     
    135138     */
    136139    public function admin_field_html( array $raw_properties = array() ) {
    137         $r = bp_parse_args( $raw_properties, array(
    138             'cols' => 40,
    139             'rows' => 5,
    140         ) ); ?>
     140        $r = bp_parse_args(
     141            $raw_properties,
     142            array(
     143                'cols' => 40,
     144                'rows' => 5,
     145            )
     146        );
     147        ?>
    141148
    142149        <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?>></textarea>
Note: See TracChangeset for help on using the changeset viewer.