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/classes/class-bp-friends-friendship.php

    r13092 r13108  
    270270        }
    271271
    272         $r = bp_parse_args( $args, array(
    273             'id'                => null,
    274             'initiator_user_id' => null,
    275             'friend_user_id'    => null,
    276             'is_confirmed'      => null,
    277             'is_limited'        => null,
    278             'order_by'          => 'date_created',
    279             'sort_order'        => 'DESC',
    280             'page'              => null,
    281             'per_page'          => null
    282         ), 'bp_get_user_friendships' );
     272        $r = bp_parse_args(
     273            $args,
     274            array(
     275                'id'                => null,
     276                'initiator_user_id' => null,
     277                'friend_user_id'    => null,
     278                'is_confirmed'      => null,
     279                'is_limited'        => null,
     280                'order_by'          => 'date_created',
     281                'sort_order'        => 'DESC',
     282                'page'              => null,
     283                'per_page'          => null,
     284            ),
     285            'bp_get_user_friendships'
     286        );
    283287
    284288        // First, we get all friendships that involve the user.
Note: See TracChangeset for help on using the changeset viewer.