[wp-trac] [WordPress Trac] #35488: wp_logout() not working as it should

WordPress Trac noreply at wordpress.org
Mon Dec 9 20:57:19 UTC 2019


#35488: wp_logout() not working as it should
--------------------------------------+-----------------------------
 Reporter:  sebastian.pisula          |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by figureone):

 FYI we decided to use the `clear_auth_cookie` action instead of
 `wp_logout`, since it fires on logout before the current user session is
 destroyed.
 https://developer.wordpress.org/reference/hooks/clear_auth_cookie/

 The only other time the hook fires is when the user changes their password
 (in which case they need to log in again anyway, so it is, in practice, a
 "logout").

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35488#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list