[buddypress-trac] [BuddyPress Trac] #7151: Move `'bp_register_post_types'` and `'bp_register_taxonomies'` hooks before`'bp_core_set_uri_globals'`

buddypress-trac noreply at wordpress.org
Wed Jun 29 20:33:20 UTC 2016


#7151: Move `'bp_register_post_types'` and `'bp_register_taxonomies'` hooks
before`'bp_core_set_uri_globals'`
-------------------------+------------------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:  2.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Description changed by r-a-y:

Old description:

> 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  );
> with `add_action( 'bp_register_taxonomies', 'bp_register_member_types'
> );` to be more inline with our existing `'bp_register_taxonomies'` hook.

New description:

 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  );`
 with `add_action( 'bp_register_taxonomies', 'bp_register_member_types' );`
 to be more inline with our existing `'bp_register_taxonomies'` hook.

--

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7151#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list