#699 closed defect (bug) (fixed)
BuddyPress Navs should be in a own hook + diff
Reported by: | nicolagreco | Owned by: | nicolagreco |
---|---|---|---|
Milestone: | 1.2 | Priority: | minor |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch nicolagreco |
Cc: |
Description
As you can see in the diff file, i moved all setup_nav actions in from wp to bp_nav.
I'm working on mediawiki integration, and to no nav items are added if there isnt any call to 'wp' action ( like do_action('wp')), so i can't load $bp->bp_nav items without loading all wp environment (things that i don't want)
So if there is a new functions ( the bp_core_setup_navs in the diff ) that loads the global without loading 'wp'
so with that i can have $bp->bp_nav adding do_action( 'bp_nav' ) or using directly bp_core_setup_navs.
The same should be done for setup_globals
Attachments (1)
Change History (10)
#5
@
15 years ago
I will +1 this if anything because it looks cleaner in the code to not hook all of the navs in two different places. :)
Milestone Core 1.1 deleted