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

WordPress Trac noreply at wordpress.org
Mon May 5 03:46:56 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 Seems invalid though: is_user_logged_in() returns false until the init
 hook, so if you run your code when the plugin is loaded then it will not
 work indeed.

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


More information about the wp-trac mailing list