• Resolved highgatecreative

    (@highgatecreative)


    Hi,
    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?

    Thanks!

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

    (@neoxx)

    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,
    Berny

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