get_currentuserinfo() throwing PHP Notice
-
Your plugin is throwing PHP Notice, the cause is using the deprecated
get_currentuserinfo
function:PHP Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
The fix is dead simple, just replace line 546 in index.php:
get_currentuserinfo();
with this:
$current_user = wp_get_current_user();
- The topic ‘get_currentuserinfo() throwing PHP Notice’ is closed to new replies.