Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:52:18 PM (10 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/post.php

    r39188 r39278  
    31243124        if ( ! $valid_date ) {
    31253125                if ( $wp_error ) {
    3126                         return new WP_Error( 'invalid_date', __( 'Whoops, the provided date is invalid.' ) );
     3126                        return new WP_Error( 'invalid_date', __( 'Invalid date.' ) );
    31273127                } else {
    31283128                        return 0;
    … …  
    34043404                if ( 'default' != $postarr['page_template'] && ! isset( $page_templates[ $postarr['page_template'] ] ) ) {
    34053405                        if ( $wp_error ) {
    3406                                 return new WP_Error('invalid_page_template', __('The page template is invalid.'));
     3406                                return new WP_Error( 'invalid_page_template', __( 'Invalid page template.' ) );
    34073407                        }
    34083408                        update_post_meta( $post_ID, '_wp_page_template', 'default' );
Note: See TracChangeset for help on using the changeset viewer.