[wp-trac] [WordPress Trac] #28019: WP_User does not initialise data to a sane value
WordPress Trac
noreply at wordpress.org
Fri Apr 25 01:54:55 UTC 2014
#28019: WP_User does not initialise data to a sane value
--------------------------+------------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: minor | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by rmccue:
Old description:
> If I do `new WP_User()`, I'd expect to be able to do things like
> `$user->user_login = "x"` without causing an error. However, the `$data`
> property used internally is not initialised to an empty array, causing a
> "Creating default object from empty value" error.
New description:
If I do `new WP_User()`, I'd expect to be able to do things like
`$user->user_login = "x"` without causing an error. However, the `$data`
property used internally is not initialised to an empty object, causing a
"Creating default object from empty value" error.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28019#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list