Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:52:18 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r39239 r39278  
    10411041            case 'date-time' :
    10421042                if ( ! rest_parse_date( $value ) ) {
    1043                     return new WP_Error( 'rest_invalid_date', __( 'The date you provided is invalid.' ) );
     1043                    return new WP_Error( 'rest_invalid_date', __( 'Invalid date.' ) );
    10441044                }
    10451045                break;
     
    10511051                // https://core.trac.wordpress.org/ticket/38506
    10521052                if ( ! is_email( $value ) || strlen( $value ) < 6 ) {
    1053                     return new WP_Error( 'rest_invalid_email', __( 'The email address you provided is invalid.' ) );
     1053                    return new WP_Error( 'rest_invalid_email', __( 'Invalid email address.' ) );
    10541054                }
    10551055                break;
Note: See TracChangeset for help on using the changeset viewer.