Make WordPress Core


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

Text Changes: Capitalize error messages consistently.

Props Presskopp.
Fixes #42945.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.