[wp-trac] [WordPress Trac] #31097: wp_update_user() - PHP notice when ID not specified.
WordPress Trac
noreply at wordpress.org
Thu Jan 22 13:28:12 UTC 2015
#31097: wp_update_user() - PHP notice when ID not specified.
--------------------------+-----------------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When using `wp_update_user()` with no ID specified, a `WP_Error` is
thrown, indicating : `Invalid User ID.`.
This is fine, however, a notice for invalid `$userdata` array key `ID` is
still being thrown as well.
This appears to be a really old issue - I was able to encounter it in
`3.1`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31097>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list