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-notifications/bp-notifications-functions.php

    r13091 r13108  
    3434function bp_notifications_add_notification( $args = array() ) {
    3535
    36     $r = bp_parse_args( $args, array(
    37         'user_id'           => 0,
    38         'item_id'           => 0,
    39         'secondary_item_id' => 0,
    40         'component_name'    => '',
    41         'component_action'  => '',
    42         'date_notified'     => bp_core_current_time(),
    43         'is_new'            => 1,
    44         'allow_duplicate'   => false,
    45     ), 'notifications_add_notification' );
     36    $r = bp_parse_args(
     37        $args,
     38        array(
     39            'user_id'           => 0,
     40            'item_id'           => 0,
     41            'secondary_item_id' => 0,
     42            'component_name'    => '',
     43            'component_action'  => '',
     44            'date_notified'     => bp_core_current_time(),
     45            'is_new'            => 1,
     46            'allow_duplicate'   => false,
     47        ),
     48        'notifications_add_notification'
     49    );
    4650
    4751    // Check for existing duplicate notifications.
Note: See TracChangeset for help on using the changeset viewer.