mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
Merge duplicate strings related to Trash.
props pavelevap. fixes #33133. git-svn-id: https://develop.svn.wordpress.org/trunk@33431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a5d922f427
commit
5a23543cc8
@ -278,7 +278,7 @@ case 'untrash':
|
||||
wp_die( __( 'Unknown post type.' ) );
|
||||
|
||||
if ( ! current_user_can( 'delete_post', $post_id ) )
|
||||
wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
|
||||
wp_die( __( 'You are not allowed to restore this item from the Trash.' ) );
|
||||
|
||||
if ( ! wp_untrash_post( $post_id ) )
|
||||
wp_die( __( 'Error in restoring from Trash.' ) );
|
||||
|
@ -129,7 +129,7 @@ if ( $doaction ) {
|
||||
wp_die( __( 'You are not allowed to move this post to the trash.' ) );
|
||||
|
||||
if ( !wp_trash_post( $post_id ) )
|
||||
wp_die( __( 'Error in moving to trash.' ) );
|
||||
wp_die( __( 'Error in moving to Trash.' ) );
|
||||
}
|
||||
$location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location );
|
||||
break;
|
||||
@ -141,7 +141,7 @@ if ( $doaction ) {
|
||||
wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
|
||||
|
||||
if ( !wp_untrash_post( $post_id ) )
|
||||
wp_die( __( 'Error in restoring from trash.' ) );
|
||||
wp_die( __( 'Error in restoring from Trash.' ) );
|
||||
}
|
||||
$location = add_query_arg( 'untrashed', count( $post_ids ), $location );
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user