Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/18/2014 02:09:33 AM (11 years ago)
Author:
r-a-y
Message:

Replace wp_parse_args() with bp_parse_args() for all template loops.

bp_parse_args() allows developers to filter the template arguments
before the loop is rendered. This will allow for greater
flexibility to manipulate template loops in plugins.

See #5306

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-template.php

    r8115 r8142  
    479479
    480480    // Parse the args
    481     $r = wp_parse_args( $args, array(
     481    $r = bp_parse_args( $args, array(
    482482        'user_id'      => $user_id,
    483483        'is_new'       => $is_new,
     
    487487        'search_terms' => isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '',
    488488        'page_arg'     => 'npage',
    489     ) );
     489    ), 'has_notifications' );
    490490
    491491    // Get the notifications
Note: See TracChangeset for help on using the changeset viewer.