Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.

Props ramiy, SergeyBiryukov.
Fixes #38808.

git-svn-id: https://develop.svn.wordpress.org/trunk@39278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2016-11-17 15:52:18 +00:00
parent b2983232c3
commit eb26b2a6a7
10 changed files with 21 additions and 21 deletions

View File

@@ -1040,7 +1040,7 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
switch ( $args['format'] ) {
case 'date-time' :
if ( ! rest_parse_date( $value ) ) {
return new WP_Error( 'rest_invalid_date', __( 'The date you provided is invalid.' ) );
return new WP_Error( 'rest_invalid_date', __( 'Invalid date.' ) );
}
break;
@@ -1050,7 +1050,7 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
//
// https://core.trac.wordpress.org/ticket/38506
if ( ! is_email( $value ) || strlen( $value ) < 6 ) {
return new WP_Error( 'rest_invalid_email', __( 'The email address you provided is invalid.' ) );
return new WP_Error( 'rest_invalid_email', __( 'Invalid email address.' ) );
}
break;
case 'ipv4' :