Changeset 39158 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 11/08/2016 06:41:57 AM (10 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
r39061 r39158 1037 1037 1038 1038 case 'email' : 1039 if ( ! is_email( $value ) ) { 1039 // is_email() checks for 3 characters (a@b), but 1040 // wp_handle_comment_submission() requires 6 characters (a@b.co) 1041 // 1042 // https://core.trac.wordpress.org/ticket/38506 1043 if ( ! is_email( $value ) || strlen( $value ) < 6 ) { 1040 1044 return new WP_Error( 'rest_invalid_email', __( 'The email address you provided is invalid.' ) ); 1041 1045 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)