[wp-trac] [WordPress Trac] #33288: wp_set_current_user function does not interface correctly with WP_User constructor
WordPress Trac
noreply at wordpress.org
Tue Aug 18 17:31:41 UTC 2015
#33288: wp_set_current_user function does not interface correctly with WP_User
constructor
-------------------------------+------------------------------
Reporter: jhannwong | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 2.0.3
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by helen):
* keywords: => reporter-feedback
* version: trunk => 2.0.3
Comment:
Hi jhannwong, welcome to Trac. `$id` won't necessarily evaluate to `0`; we
probably can't change to a strict comparison here but type juggling should
handle this okay with numeric strings. Can you elaborate on what you're
trying to do and what's unexpected about the result?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33288#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list