[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:47:08 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         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28019>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list