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-templates/bp-nouveau/includes/template-tags.php

    r13089 r13108  
    22362236 */
    22372237function bp_nouveau_get_customizer_link( $args = array() ) {
    2238     $r = bp_parse_args( $args, array(
    2239         'capability' => 'bp_moderate',
    2240         'object'     => 'user',
    2241         'item_id'    => 0,
    2242         'autofocus'  => '',
    2243         'text'       => '',
    2244     ), 'nouveau_get_customizer_link' );
     2238    $r = bp_parse_args(
     2239        $args,
     2240        array(
     2241            'capability' => 'bp_moderate',
     2242            'object'     => 'user',
     2243            'item_id'    => 0,
     2244            'autofocus'  => '',
     2245            'text'       => '',
     2246        ),
     2247        'nouveau_get_customizer_link'
     2248    );
    22452249
    22462250    if ( empty( $r['capability'] ) || empty( $r['autofocus'] ) || empty( $r['text'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.