[wp-trac] [WordPress Trac] #28116: is_user_logged_in() does not work properly after using wp_signon()

WordPress Trac noreply at wordpress.org
Sun May 4 13:14:10 UTC 2014


#28116: is_user_logged_in() does not work properly after using wp_signon()
--------------------------+-----------------------------
 Reporter:  guusifs       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  3.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I encountered is_user_logged_in() does not work properly after signing a
 user is logged in. Work around is described here:
 [http://blog.rhysgoodwin.com/programming/wordpress-wp_signon-current_user-
 is-not-populated/]. Guess that could also be the (quick) fix to just call
 wp_set_current_user at the end of wp_signon().

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28116>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list