[wp-trac] [WordPress Trac] #28116: is_user_logged_in() does not work properly after using wp_signon()
WordPress Trac
noreply at wordpress.org
Sun Jun 25 20:07:10 UTC 2017
#28116: is_user_logged_in() does not work properly after using wp_signon()
--------------------------+---------------------------
Reporter: guusifs | Owner: DrewAPicture
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Users | Version: 3.9
Severity: normal | Resolution: fixed
Keywords: needs-docs | Focuses:
--------------------------+---------------------------
Changes (by DrewAPicture):
* owner: => DrewAPicture
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40943"]:
{{{
#!CommitTicketReference repository="" revision="40943"
Docs: Add a note to the DocBlock for `wp_signon()` mentioning that it
doesn't handle setting the current user.
Also outlines the conditions that must be met for is_user_logged_in() to
work with it.
Part props SergeyBiryukov.
Fixes #28116.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28116#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list