• Resolved Dominik Schwind

    (@dominikschwind-1)


    This plugin calls wp_get_current_user too early – because of the WP core bugs #46586 and #43869 this leads to a situation where plugins that provide authentication by non-standard means can’t hook into the determine_current_user filter.

    This seems to happen in the class “ShortPixelLogger” – maybe change that class that all the code in the constructor is actually only called when the DEBUG settings are set, as the comment indicates?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Dominik!

    Thanks for your message, I’ll pass it to the developers and we’ll get back to you if necessary.

    Best,

    Thread Starter Dominik Schwind

    (@dominikschwind-1)

    Thanks. ?? I think to be more precise your code is calling current_user_can() which in turn calls wp_get_current_user()

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hey Dominik,

    One of our developers told me “I updated the modules to load only when debug is active and moved the active hook to ‘init’, which is after the current user is set.”

    This will be included in the next release.

    Thanks for letting us know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin calls `wp_get_current_user` too early.’ is closed to new replies.