Skip to:
Content

BuddyPress.org

Changeset 8539


Ignore:
Timestamp:
06/19/2014 01:08:40 AM (11 years ago)
Author:
boonebgorges
Message:

Save a variable when parsing args in bp_core_new_subnav_item()

See #5720

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-buddybar.php

    r7756 r8539  
    260260    global $bp;
    261261
    262     $defaults = array(
     262    $r = wp_parse_args( $args, array(
    263263        'name'            => false, // Display name for the nav item
    264264        'slug'            => false, // URL slug for the nav item
     
    271271        'screen_function' => false, // The name of the function to run when clicked
    272272        'link'            => ''     // The link for the subnav item; optional, not usually required.
    273     );
    274 
    275     $r = wp_parse_args( $args, $defaults );
     273    ) );
     274
    276275    extract( $r, EXTR_SKIP );
    277276
Note: See TracChangeset for help on using the changeset viewer.