[wp-trac] [WordPress Trac] #21043: is_user_logged_in() returns true even if user is not logged in

WordPress Trac noreply at wordpress.org
Wed Feb 26 06:18:10 UTC 2014


#21043: is_user_logged_in() returns true even if user is not logged in
--------------------------+----------------------
 Reporter:  TomAuger      |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  3.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:  dev-feedback  |     Focuses:
--------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 wp_set_current_user() is a complete context switch. is_user_logged_in() is
 merely a reflection of that state. Changing this would break a ton.

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


More information about the wp-trac mailing list