[wp-trac] [WordPress Trac] #32158: wp_update_user() fails if email field case doesn't match
WordPress Trac
noreply at wordpress.org
Thu Jul 2 23:04:04 UTC 2015
#32158: wp_update_user() fails if email field case doesn't match
---------------------------+-----------------------------
Reporter: davidjbullock | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2.3
Component: Users | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
---------------------------+-----------------------------
Comment (by tyxla):
The 32158.test.2.diff patch was not applying cleanly for me, I noticed
that there are several things that can be improved as well.
I've just submitted an updated version of the unit tests by
@collinsinternet with the following improvements:
1. Instead of testing for `$this->assertFalse( is_wp_error( $update ) );`,
it is better to test vs. the user's ID, which is the result of
`wp_update_user()` when update was successful.
2. Removed the unnecessary information
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32158#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list