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-textarea.php

    r11645 r13108  
    7575
    7676                if ( ! $richtext_enabled ) {
    77                         $r = wp_parse_args( $raw_properties, array(
    78                                 'cols' => 40,
    79                                 'rows' => 5,
    80                         ) );
    81 
     77                        $r = bp_parse_args(
     78                                $raw_properties,
     79                                array(
     80                                        'cols' => 40,
     81                                        'rows' => 5,
     82                                )
     83                        );
    8284                        ?>
    8385
     
    138140                if ( ! $richtext_enabled ) {
    139141
    140                         $r = bp_parse_args( $raw_properties, array(
    141                                 'cols' => 40,
    142                                 'rows' => 5,
    143                         ) ); ?>
     142                        $r = bp_parse_args(
     143                                $raw_properties,
     144                                array(
     145                                        'cols' => 40,
     146                                        'rows' => 5,
     147                                )
     148                        );
     149                        ?>
    144150
    145151                        <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?>></textarea>
Note: See TracChangeset for help on using the changeset viewer.