Fix the error: get_currentuserinfo() is deprecated in WordPress

After updating to latest WordPress version 4.5 i stumbled over a lot of plugins which are throwing the error get_currentuserinfo() is deprecated. (One of the mentioned plugins is mailpoet 2.7.1 which is not updated, yet) The exact error message is: Notice: get_currentuserinfo is deprecated since version 4.5! Use wp_get_current_user() instead. in /srv/www/wordpress-develop/src/wp-includes/functions.php on line 3657 …

Read more