[wp-trac] [WordPress Trac] #24025: Calling is_user_logged_in() causes the "wordpress_logged_in[HASH]" cookie to be set.
WordPress Trac
noreply at wordpress.org
Wed Apr 10 06:13:40 UTC 2013
#24025: Calling is_user_logged_in() causes the "wordpress_logged_in[HASH]" cookie
to be set.
-------------------------------+------------------------------
Reporter: tomdkat | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
* component: General => Users
Comment:
Could not reproduce on a clean install. My steps:
1. Log out. Clear the site cookies.
2. Add `echo is_user_logged_in();` to theme's `header.php`.
3. Visit the site. No new cookies are created.
`LOGGED_IN_COOKIE` is only set in `wp_set_auth_cookie()`: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
includes/pluggable.php#L640
By default, it's only called in `wp_signon()` and `wp_update_user()`:
[[BR]]
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/user.php#L63
[[BR]]
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
includes/user.php#L1480
Have you tested with all plugins disabled?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24025#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list