- Timestamp:
- 01/17/2019 09:24:47 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r43987 r44641 642 642 } 643 643 644 if ( email_exists( $request['email'] ) && $request['email'] !== $user->user_email ) { 644 $owner_id = email_exists( $request['email'] ); 645 646 if ( $owner_id && $owner_id !== $id ) { 645 647 return new WP_Error( 'rest_user_invalid_email', __( 'Invalid email address.' ), array( 'status' => 400 ) ); 646 648 }
Note: See TracChangeset
for help on using the changeset viewer.