Merge some strings in wp-admin/upload.php
with existing strings with the same meaning.
Props pavelevap. Fixes #31727. git-svn-id: https://develop.svn.wordpress.org/trunk@34797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
433f6600c0
commit
ee0d153629
@ -128,7 +128,7 @@ if ( $doaction ) {
|
||||
break;
|
||||
foreach ( (array) $post_ids as $post_id ) {
|
||||
if ( !current_user_can( 'delete_post', $post_id ) )
|
||||
wp_die( __( 'You are not allowed to move this post to the trash.' ) );
|
||||
wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
|
||||
|
||||
if ( !wp_trash_post( $post_id ) )
|
||||
wp_die( __( 'Error in moving to Trash.' ) );
|
||||
@ -140,7 +140,7 @@ if ( $doaction ) {
|
||||
break;
|
||||
foreach ( (array) $post_ids as $post_id ) {
|
||||
if ( !current_user_can( 'delete_post', $post_id ) )
|
||||
wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
|
||||
wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
|
||||
|
||||
if ( !wp_untrash_post( $post_id ) )
|
||||
wp_die( __( 'Error in restoring from Trash.' ) );
|
||||
@ -152,7 +152,7 @@ if ( $doaction ) {
|
||||
break;
|
||||
foreach ( (array) $post_ids as $post_id_del ) {
|
||||
if ( !current_user_can( 'delete_post', $post_id_del ) )
|
||||
wp_die( __( 'You are not allowed to delete this post.' ) );
|
||||
wp_die( __( 'You are not allowed to delete this item.' ) );
|
||||
|
||||
if ( !wp_delete_attachment( $post_id_del ) )
|
||||
wp_die( __( 'Error in deleting.' ) );
|
||||
|
Loading…
Reference in New Issue
Block a user