Ticket #39067: 39067.patch
File 39067.patch, 766 bytes (added by , 8 years ago) |
---|
-
wp-includes/user.php
1525 1535 ) { 1526 1536 return new WP_Error( 'existing_user_email', __( 'Sorry, that email address is already used!' ) ); 1527 1537 } 1538 1539 /** 1540 * Filters for any custom validation. 1541 * 1542 * @since 4.7.1 1543 * 1544 * @param true|WP_Error true on success, and WP_Error if error. 1545 * @param array $userdata Array of userdata. 1546 */ 1547 $pre_user_validate = apply_filters( 'pre_user_validate', true, $userdata ); 1548 1549 if ( is_wp_error( $pre_user_validate ) ) { 1550 return $pre_user_validate; 1551 } 1552 1528 1553 $nickname = empty( $userdata['nickname'] ) ? $user_login : $userdata['nickname']; 1529 1554 1530 1555 /**