#7151 closed enhancement (fixed)
Move `'bp_register_post_types'` and `'bp_register_taxonomies'` hooks before`'bp_core_set_uri_globals'`
Reported by: | r-a-y | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
Split from #7138, we should preferably move our 'bp_register_post_types'
and 'bp_register_taxonomies'
hooks before bp_core_set_uri_globals()
is run.
Currently, bp_core_set_uri_globals()
runs on 'bp_init'
at priority 2 and the two other hooks run at priority 3.
Attached patch does two things:
- Sets the priority of
'bp_register_post_types'
and'bp_register_taxonomies'
to 2 and called just before the'bp_core_set_uri_globals'
hook. - Replaces
add_action( 'bp_loaded', 'bp_register_member_types', 8 );
withadd_action( 'bp_register_taxonomies', 'bp_register_member_types' );
to be more inline with our existing'bp_register_taxonomies'
hook.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
LGTM