[buddypress-trac] [BuddyPress Trac] #7138: bp_groups_register_group_types() should fire on `'bp_init'`

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


#7138: bp_groups_register_group_types() should fire on `'bp_init'`
------------------------------+---------------------
 Reporter:  r-a-y             |       Owner:  r-a-y
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.6.1
Component:  Groups            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10916"]:
 {{{
 #!CommitTicketReference repository="" revision="10916"
 Groups: Register group types on `'init'`.

 Previously, it was not possible to register group types in the current
 theme's functions.php file.

 This is due to our `'bp_groups_register_group_types'` hook running on
 `'plugins_loaded'`.

 Commit moves the register group types hook to `'bp_init'` at priority 1
 so it runs just before `bp_core_set_uri_globals()`, which runs at priority
 2.

 Fixes #7138 (2.6-branch)
 }}}

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


More information about the buddypress-trac mailing list