Make WordPress Core


Ignore:
Timestamp:
05/03/2022 02:51:41 PM (3 years ago)
Author:
audrasjb
Message:

General: Add missing strong tag to some error messages.

This changeset adds missing strong tag to some error messages and updates some AJAX messages, for better consistency.

Follow-up to [53118].

Props NekoJonez, audrasjb, ocean90.
Fixes #54437.

File:
1 edited

Legend:

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

    r53183 r53337  
    12921292        wp_die( 1 );
    12931293    } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) {
    1294         wp_die( __( 'Error: You cannot reply to a comment on a draft post.' ) );
     1294        wp_die( __( 'You cannot reply to a comment on a draft post.' ) );
    12951295    }
    12961296
     
    13221322
    13231323    if ( '' === $comment_content ) {
    1324         wp_die( __( 'Error: Please type your comment text.' ) );
     1324        wp_die( __( 'Please type your comment text.' ) );
    13251325    }
    13261326
     
    14241424
    14251425    if ( '' === $_POST['content'] ) {
    1426         wp_die( __( 'Error: Please type your comment text.' ) );
     1426        wp_die( __( 'Please type your comment text.' ) );
    14271427    }
    14281428
Note: See TracChangeset for help on using the changeset viewer.