mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1291,7 +1291,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
if ( empty( $post->post_status ) ) {
|
||||
wp_die( 1 );
|
||||
} elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) {
|
||||
wp_die( __( 'Error: You cannot reply to a comment on a draft post.' ) );
|
||||
wp_die( __( 'You cannot reply to a comment on a draft post.' ) );
|
||||
}
|
||||
|
||||
$user = wp_get_current_user();
|
||||
@@ -1321,7 +1321,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
}
|
||||
|
||||
if ( '' === $comment_content ) {
|
||||
wp_die( __( 'Error: Please type your comment text.' ) );
|
||||
wp_die( __( 'Please type your comment text.' ) );
|
||||
}
|
||||
|
||||
$comment_parent = 0;
|
||||
@@ -1423,7 +1423,7 @@ function wp_ajax_edit_comment() {
|
||||
}
|
||||
|
||||
if ( '' === $_POST['content'] ) {
|
||||
wp_die( __( 'Error: Please type your comment text.' ) );
|
||||
wp_die( __( 'Please type your comment text.' ) );
|
||||
}
|
||||
|
||||
if ( isset( $_POST['status'] ) ) {
|
||||
|
||||
@@ -368,7 +368,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */
|
||||
__( 'Error: Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ),
|
||||
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ),
|
||||
'<code>web.config</code>',
|
||||
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
@@ -395,7 +395,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */
|
||||
__( 'Error: The root directory of your site is not <a href="%1$s">writable</a>, so creating a file automatically was not possible. This is the URL rewrite rule you should have in your %2$s file. Create a new file called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ),
|
||||
__( '<strong>Error:</strong> The root directory of your site is not <a href="%1$s">writable</a>, so creating a file automatically was not possible. This is the URL rewrite rule you should have in your %2$s file. Create a new file called %2$s in the root directory of your site. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ),
|
||||
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
|
||||
'<code>web.config</code>',
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
@@ -426,7 +426,7 @@ else :
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
|
||||
__( 'Error: Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
|
||||
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
|
||||
'<code>.htaccess</code>',
|
||||
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
|
||||
@@ -186,7 +186,7 @@ class Tests_Ajax_ReplytoComment extends WP_Ajax_UnitTestCase {
|
||||
|
||||
// Make the request.
|
||||
$this->expectException( 'WPAjaxDieStopException' );
|
||||
$this->expectExceptionMessage( 'Error: You cannot reply to a comment on a draft post.' );
|
||||
$this->expectExceptionMessage( 'You cannot reply to a comment on a draft post.' );
|
||||
$this->_handleAjax( 'replyto-comment' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user