xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP notice on BuddyPress sites for bp_setup_current_user

fjarrett opened this issue · comments

A debug backtrace shows that Stream is causing this error by loading WP_Stream_Admin::load() too early on plugins_loaded.

It should be loaded on init after the $current_user is properly set up. And we may as well be hooking into the load methods for other classes on init as well for good measure.

Notice: bp_setup_current_user was called incorrectly.
The current user is being initialized without using $wp->init().
Please see Debugging in WordPress for more information.
This message was added in version 1.7 in /srv/www/wordpress-trunk/wp-includes/functions.php on line 3550

See https://buddypress.trac.wordpress.org/ticket/4830