bbp_setup_current_user was called incorrectly
This debug notice is triggered when
WP_DEBUG constant is defined to
true and a plugin *other than* bbPress is attempting to access something pertaining to the current user before
$wp->init() and/or the
init action has fired in
wp-settings.php. The notice is there to alert you that bbPress is being forced into a configuration that may cause other (potentially serious) access control issues that WordPress has no hooks to let properly bbPress circumvent or restore back to safe operating conditions.
Unfortunately, it’s difficult to ascertain from within bbPress exactly what other plugin causes this to happen, so
bbp_setup_current_user comes up in the logs.
Also, there is no
wp_set_current_user action; the
wp_set_current_user() function was introduced in WordPress 2.0.3 and the
set_current_user action remains for backwards compatibility.
- #WP24169 regarding the Customizer also doing this wrong
- #WP23106 regarding adding an action to allow plugins to reliably hook in and repair capabilities
- The many bbPress Trac Tickets this WordPress load order issue has resulted in