WP_DEBUG warning
-
Hi, I’m getting this error with WP_DEBUG turned on:
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 ...\wp-includes\functions.php on line 3897
The problem is easily fixed by changing line 1225 in core/base.php from
if(empty($current_user) && function_exists('get_currentuserinfo')) get_currentuserinfo();
to
if(empty($current_user) && function_exists('get_currentuserinfo')) wp_get_current_user();
thanks for the great plugin!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP_DEBUG warning’ is closed to new replies.