get_currentuserinfo() is deprecated since WordPress 4.5
-
hey there, the plugin throws a notice after updating to WordPress 4.5:
12821:[29-Apr-2016 10:59:42 UTC] PHP Notice: get_currentuserinfo is <strong>deprecated</strong> since version 4.5! Use wp_get_current_user() instead. in /var/www/html/diginomica/wp-includes/functions.php on line 3658 12836:[29-Apr-2016 10:59:42 UTC] PHP 14. get_currentuserinfo() /var/www/html/diginomica/wp-content/plugins/clicky-analytics/functions.php:29
I’ve fixed the issue for one of our clients replacing “get_currentuserinfo ();” from here https://plugins.trac.wordpress.org/browser/clicky-analytics/trunk/functions.php#L29 with “wp_get_current_user();”
I can send a pull request if you have a public GitHub repository? 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_currentuserinfo() is deprecated since WordPress 4.5’ is closed to new replies.