[wp-trac] [WordPress Trac] #33288: wp_set_current_user function does not interface correctly with WP_User constructor
WordPress Trac
noreply at wordpress.org
Thu Aug 6 08:09:36 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: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The fix is simple.
Line 29:
{{{
$id == $current_user->ID
}}}
If $id is a string, it evaluates to 0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33288>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list