Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2021 08:43:39 PM (4 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-activity.php

    r13092 r13108  
    4040    }
    4141
    42     $r = wp_parse_args( $args, array(
    43         'user_id'           => bp_loggedin_user_id(),
    44         'action'            => '',
    45         'content'           => '',
    46         'primary_link'      => '',
    47         'component'         => buddypress()->friends->id,
    48         'type'              => false,
    49         'item_id'           => false,
    50         'secondary_item_id' => false,
    51         'recorded_time'     => bp_core_current_time(),
    52         'hide_sitewide'     => false,
    53     ) );
     42    $r = bp_parse_args(
     43        $args,
     44        array(
     45            'user_id'           => bp_loggedin_user_id(),
     46            'action'            => '',
     47            'content'           => '',
     48            'primary_link'      => '',
     49            'component'         => buddypress()->friends->id,
     50            'type'              => false,
     51            'item_id'           => false,
     52            'secondary_item_id' => false,
     53            'recorded_time'     => bp_core_current_time(),
     54            'hide_sitewide'     => false,
     55        )
     56    );
    5457
    5558    return bp_activity_add( $r );
Note: See TracChangeset for help on using the changeset viewer.