Changeset 40667 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 05/14/2017 04:19:51 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r40600 r40667 1078 1078 1079 1079 case 'email' : 1080 // is_email() checks for 3 characters (a@b), but 1081 // wp_handle_comment_submission() requires 6 characters (a@b.co) 1082 // 1083 // https://core.trac.wordpress.org/ticket/38506 1084 if ( ! is_email( $value ) || strlen( $value ) < 6 ) { 1080 if ( ! is_email( $value ) ) { 1085 1081 return new WP_Error( 'rest_invalid_email', __( 'Invalid email address.' ) ); 1086 1082 }
Note: See TracChangeset
for help on using the changeset viewer.