[buddypress-trac] [BuddyPress] #3625: Core functions should not hook to bp_init with default priority

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Sep 26 19:31:47 UTC 2011


#3625: Core functions should not hook to bp_init with default priority
-------------------------------------+------------------
 Reporter:  boonebgorges             |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  1.6
Component:  Core                     |     Version:  1.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by webraket):

 I think setting it to 8 does hurt some things, for example the title is
 set at priority 9.
 http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-
 hooks.php#L33

 My suggestion would still be to never hook core functions on bp_init.

 Even if a plugin hooks to bp_init with priority 1, BuddyPress should be
 fully initialised at that point.

 The way BuddyPress hooks wp_init to init, it also expects WordPress to be
 fully initialised even with priority 1-9 on init.

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


More information about the buddypress-trac mailing list