[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
Thu Feb 21 14:12:17 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.7
Component:  Core             |     Version:  1.7
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+------------------------------

Comment (by johnjamesjacoby):

 Replying to [comment:4 r-a-y]:
 > (In [6724]) Fix 'Show the Toolbar for logged out users' setting.
 >
 > WP recommends to use show_admin_bar() on 'plugins_loaded':
 > https://codex.wordpress.org/Function_Reference/show_admin_bar#Notes
 It's a race to get our logic in before WordPress core, and after
 $wp->init();  plugins_loaded is too early because of our is_user_logged_in
 check. init is too late because WP has already decided for us. I'll look
 into this soon.

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


More information about the buddypress-trac mailing list