Make WordPress Core


Ignore:
Timestamp:
02/01/2020 09:36:44 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Text Changes: Use sentence case for the word Error in various error messages, instead of all caps.

Using all caps should be avoided for better readability and because screen readers may pronounce all-caps words as abbreviations.

Props afercia, ryokuhi, sabernhardt, garrett-eclipse.
See #47656, #43037, #42945.

File:
1 edited

Legend:

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

    r47154 r47156  
    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.