Make WordPress Core


Ignore:
Timestamp:
06/21/2020 01:58:46 PM (5 years ago)
Author:
afercia
Message:

I18N: Restore the "Error:" prefix for error messages.

Partially reverts [48059] as there's no full consensus on the removal of the text prefix. Further actions should be taken to improve consistency and accessibility of the admin notices. Keeps some improvements to the translatable strings from [48059].

Fixes #47656.

File:
1 edited

Legend:

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

    r48067 r48115  
    12731273        wp_die( 1 );
    12741274    } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) {
    1275         wp_die( __( 'You can’t reply to a comment on a draft post.' ) );
     1275        wp_die( __( 'Error: You can’t reply to a comment on a draft post.' ) );
    12761276    }
    12771277
     
    13031303
    13041304    if ( '' === $comment_content ) {
    1305         wp_die( __( 'Please type your comment text.' ) );
     1305        wp_die( __( 'Error: Please type your comment text.' ) );
    13061306    }
    13071307
     
    14051405
    14061406    if ( '' === $_POST['content'] ) {
    1407         wp_die( __( 'Please type your comment text.' ) );
     1407        wp_die( __( 'Error: Please type your comment text.' ) );
    14081408    }
    14091409
Note: See TracChangeset for help on using the changeset viewer.