Fix for get_currentuserinfo error
-
This wonderful plugin started reporting errors after 4.5.1 because get_currentuserinfo() was deprecated and replaced with wp_get_current_user()
So in the plugins files I changed the following:
In footer.php:
<?php /* global $current_user; get_currentuserinfo(); DS Removed and replaced with below */ ?> <?php global $current_user; wp_get_current_user(); ?>And in snippet_edit.php I replaced
get_current_userinfo();
with
wp_get_current_user();
The topic ‘Fix for get_currentuserinfo error’ is closed to new replies.