[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
Mon Feb 4 01:33:54 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: new
Priority: normal | Milestone: 1.7
Component: Core | Version:
Severity: normal | Keywords: commit
-----------------------------+-----------------------------
Currently bp_core_load_admin_bar() is hooked to bp_loaded. Since we're
doing is_user_logged_in() checks (see #3661), we're invoking the current
user (and subsequently the $current_user global) before $wp_roles are
loaded.
I propose we move bp_core_load_admin_bar() to bp_init, and also move the
function itself into bp-core-adminbar.php next to
bp_core_load_admin_bar_css().
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4803>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list