[wp-trac] [WordPress Trac] #36303: edit_user() will give PHP Notices if user_login is unset on add.
WordPress Trac
noreply at wordpress.org
Wed Mar 23 02:03:56 UTC 2016
#36303: edit_user() will give PHP Notices if user_login is unset on add.
--------------------------+-----------------------------
Reporter: gitlost | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.4.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If you call edit_user() programmatically to add a user then if
`$_POST['user_login']` isn't set you'll get multiple PHP Notices of
`Undefined property: stdClass::$user_login` (as well as a WP error
message). The attached patch sets it to blank on add if unset (the WP
error message will still occur).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36303>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list