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-friends/bp-friends-template.php

    r13105 r13108  
    728728
    729729    // Parse the args.
    730     $r = bp_parse_args( $args, array(
    731         'before'  => '<li class="bp-friends-profile-stats">',
    732         'after'   => '</li>',
    733         'user_id' => bp_displayed_user_id(),
    734         'friends' => 0,
    735         'output'  => ''
    736     ), 'friends_get_profile_stats' );
     730    $r = bp_parse_args(
     731        $args,
     732        array(
     733            'before'  => '<li class="bp-friends-profile-stats">',
     734            'after'   => '</li>',
     735            'user_id' => bp_displayed_user_id(),
     736            'friends' => 0,
     737            'output'  => '',
     738        ),
     739        'friends_get_profile_stats'
     740    );
    737741
    738742    // Allow completely overloaded output.
Note: See TracChangeset for help on using the changeset viewer.