[buddypress-trac] [BuddyPress] #4803: bp_core_load_admin_bar() is called too early (bp_loaded instead of bp_init)

buddypress-trac noreply at wordpress.org
Wed Mar 27 19:29:07 UTC 2013


#4803: bp_core_load_admin_bar() is called too early (bp_loaded instead of bp_init)
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:  johnjamesjacoby
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  1.8
Component:  Core             |     Version:  1.7
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+------------------------------

Comment (by johnjamesjacoby):

 Replying to [comment:2 r-a-y]:
 > If we want to stick with a BP hook, 'bp_loaded' at a really late
 priority like 999 would work as well, but I'm not sure if that's too early
 for the current user checks.
 bp_loaded is too early, as it's still hooked to plugins_loaded. It needs
 to be early on 'init', which I'd rather not need to do for the entire
 toolbar loading process either.

 Let's extract this functionality out and create a function specifically
 for this purpose, and hook it early onto init.

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


More information about the buddypress-trac mailing list