Changeset 53337
- Timestamp:
- 05/03/2022 02:51:41 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r53183 r53337 1292 1292 wp_die( 1 ); 1293 1293 } 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.' ) ); 1295 1295 } 1296 1296 … … 1322 1322 1323 1323 if ( '' === $comment_content ) { 1324 wp_die( __( ' Error:Please type your comment text.' ) );1324 wp_die( __( 'Please type your comment text.' ) ); 1325 1325 } 1326 1326 … … 1424 1424 1425 1425 if ( '' === $_POST['content'] ) { 1426 wp_die( __( ' Error:Please type your comment text.' ) );1426 wp_die( __( 'Please type your comment text.' ) ); 1427 1427 } 1428 1428 -
trunk/src/wp-admin/options-permalink.php
r53127 r53337 369 369 printf( 370 370 /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */ 371 __( ' 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.' ),371 __( '<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.' ), 372 372 '<code>web.config</code>', 373 373 __( 'https://wordpress.org/support/article/changing-file-permissions/' ), … … 396 396 printf( 397 397 /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */ 398 __( ' 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.' ),398 __( '<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.' ), 399 399 __( 'https://wordpress.org/support/article/changing-file-permissions/' ), 400 400 '<code>web.config</code>', … … 427 427 printf( 428 428 /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */ 429 __( ' 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.' ),429 __( '<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.' ), 430 430 '<code>.htaccess</code>', 431 431 __( 'https://wordpress.org/support/article/changing-file-permissions/' ), -
trunk/tests/phpunit/tests/ajax/ReplytoComment.php
r52978 r53337 187 187 // Make the request. 188 188 $this->expectException( 'WPAjaxDieStopException' ); 189 $this->expectExceptionMessage( ' Error:You cannot reply to a comment on a draft post.' );189 $this->expectExceptionMessage( 'You cannot reply to a comment on a draft post.' ); 190 190 $this->_handleAjax( 'replyto-comment' ); 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.