• I am switching to another user in the admin user list view. But the user_switching::get_old_user() call always returns false. I am seeing that the cookies are set. This was working before but no longer works with latest WordPress 6.4.1.

    Nothing in the logs. Can I help debugging this case?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Christoph Bratschi

    (@cbratschi)

    wordpress_user_sw_olduser_* ist not set.

    Set cookies are:

    • wordpress_user_sw_secure_…
    • wordpress_logged_in_…
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report. Does that mean you don’t see the option to switch back to the original user?

    Thread Starter Christoph Bratschi

    (@cbratschi)

    We use user_switching::get_old_user()?to display our own switch back button in a navbar. But now this function always returns false and therefore we won’t render any switch back button.

    Root cause looks like a not set olduser cookie.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘user_switching::get_old_user() returns false’ is closed to new replies.