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

    r12878 r13108  
    7171        }
    7272
    73         $r = bp_parse_args( $raw_properties, array(
    74             'type'      => 'text',
    75             'inputmode' => 'url',
    76             'value'     => esc_url( bp_get_the_profile_field_edit_value() ),
    77         ) ); ?>
     73        $r = bp_parse_args(
     74            $raw_properties,
     75            array(
     76                'type'      => 'text',
     77                'inputmode' => 'url',
     78                'value'     => esc_url( bp_get_the_profile_field_edit_value() ),
     79            )
     80        );
     81        ?>
    7882
    7983        <legend id="<?php bp_the_profile_field_input_name(); ?>-1">
     
    108112    public function admin_field_html( array $raw_properties = array() ) {
    109113
    110         $r = bp_parse_args( $raw_properties, array(
    111             'type' => 'url'
    112         ) ); ?>
     114        $r = bp_parse_args(
     115            $raw_properties,
     116            array(
     117                'type' => 'url',
     118            )
     119        );
     120        ?>
    113121
    114122        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
Note: See TracChangeset for help on using the changeset viewer.