Skip to:
Content

BuddyPress.org

Changeset 4833


Ignore:
Timestamp:
07/24/2011 02:30:30 PM (13 years ago)
Author:
boonebgorges
Message:

Adds filters and a hook to bp_core_new_nav_item() to allow for easier configuration of the default nav slug. Fixes #3379, props slaFFik

File:
1 edited

Legend:

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

    r4820 r4833  
    7171
    7272        if ( !empty( $default_subnav_slug ) )
    73             $bp->current_action = $default_subnav_slug;
     73            $bp->current_action = apply_filters( 'bp_default_component_subnav', $default_subnav_slug, $r );
    7474
    7575    // Look for current item
     
    8181
    8282        if ( !empty( $default_subnav_slug ) )
    83             $bp->current_action = $default_subnav_slug;
    84     }
     83            $bp->current_action = apply_filters( 'bp_default_component_subnav', $default_subnav_slug, $r );
     84    }
     85   
     86    do_action( 'bp_core_new_nav_item', $r, $args, $defaults );
    8587}
    8688
Note: See TracChangeset for help on using the changeset viewer.