Support » Plugin: TimeZoneCalculator » get_currentuserinfo is deprecated

  • Resolved highgatecreative


    When I have debug turned on, I get this error while using this plugin:

    Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

    Is there a fix?


Viewing 1 replies (of 1 total)
  • Plugin Author Bernhard Riedl


    Hi highgatecreative,

    Thanks for pointing that out. As the deprecation in this instance does not result in an error but should rather be seen as an information, I’ll remove these function calls in the next version of TimeZoneCalculator which I will commit around the WordPress 4.8 release.

    If you don’t want to wait until then, just replace all occurrences of get_currentuserinfo() with wp_get_current_user().

    My Best,

Viewing 1 replies (of 1 total)
  • The topic ‘get_currentuserinfo is deprecated’ is closed to new replies.