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

WordPress Trac noreply at wordpress.org
Tue Apr 7 15:54:17 UTC 2020


#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 SergeyBiryukov):

 Replying to [comment:11 figureone]:
 > This fix has changed behavior in the `wp_logout` filter. Prior to
 WordPress 5.3, plugin developers could use `get_current_user_id()` inside
 the hook to get the ID of the user logging out.

 Follow-up: #49533

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


More information about the wp-trac mailing list