Make WordPress Core

Changeset 47154


Ignore:
Timestamp:
02/01/2020 08:53:14 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Capitalize error messages consistently.

Props Presskopp.
Fixes #42945.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r47149 r47154  
    12731273                wp_die( 1 );
    12741274        } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ) ) ) {
    1275                 wp_die( __( 'ERROR: you are replying to a comment on a draft post.' ) );
     1275                wp_die( __( 'ERROR: You are replying to a comment on a draft post.' ) );
    12761276        }
    12771277
     
    13031303
    13041304        if ( '' == $comment_content ) {
    1305                 wp_die( __( 'ERROR: please type a comment.' ) );
     1305                wp_die( __( 'ERROR: Please type a comment.' ) );
    13061306        }
    13071307
     
    14051405
    14061406        if ( '' == $_POST['content'] ) {
    1407                 wp_die( __( 'ERROR: please type a comment.' ) );
     1407                wp_die( __( 'ERROR: Please type a comment.' ) );
    14081408        }
    14091409
  • trunk/src/wp-admin/options.php

    r47122 r47154  
    218218
    219219        if ( ! isset( $whitelist_options[ $option_page ] ) ) {
    220                 wp_die( __( '<strong>ERROR</strong>: options page not found.' ) );
     220                wp_die( __( '<strong>ERROR</strong>: Options page not found.' ) );
    221221        }
    222222
  • trunk/src/wp-includes/comment.php

    r47122 r47154  
    12251225
    12261226        if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) {
    1227                 return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: your name is too long.' ), 200 );
     1227                return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: Your name is too long.' ), 200 );
    12281228        }
    12291229
    12301230        if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) {
    1231                 return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: your email address is too long.' ), 200 );
     1231                return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: Your email address is too long.' ), 200 );
    12321232        }
    12331233
    12341234        if ( isset( $comment_data['comment_author_url'] ) && strlen( $comment_data['comment_author_url'] ) > $max_lengths['comment_author_url'] ) {
    1235                 return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: your url is too long.' ), 200 );
     1235                return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: Your url is too long.' ), 200 );
    12361236        }
    12371237
    12381238        if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) {
    1239                 return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: your comment is too long.' ), 200 );
     1239                return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: Your comment is too long.' ), 200 );
    12401240        }
    12411241
     
    33533353        if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
    33543354                if ( '' == $comment_author_email || '' == $comment_author ) {
    3355                         return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );
     3355                        return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: Please fill the required fields (name, email).' ), 200 );
    33563356                } elseif ( ! is_email( $comment_author_email ) ) {
    3357                         return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );
     3357                        return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: Please enter a valid email address.' ), 200 );
    33583358                }
    33593359        }
     
    33803380        $allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata );
    33813381        if ( '' === $comment_content && ! $allow_empty_comment ) {
    3382                 return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: please type a comment.' ), 200 );
     3382                return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: Please type a comment.' ), 200 );
    33833383        }
    33843384
  • trunk/src/wp-includes/ms-deprecated.php

    r47122 r47154  
    411411
    412412        if ( ! $blog_id = insert_blog($domain, $path, $site_id) )
    413                 return __( '<strong>ERROR</strong>: problem creating site entry.' );
     413                return __( '<strong>ERROR</strong>: Problem creating site entry.' );
    414414
    415415        switch_to_blog($blog_id);
Note: See TracChangeset for help on using the changeset viewer.