Skip to content

Commit

Permalink
Merge duplicate strings related to Trash.
Browse files Browse the repository at this point in the history
props pavelevap.
fixes #33133.
Built from https://develop.svn.wordpress.org/trunk@33431


git-svn-id: http://core.svn.wordpress.org/trunk@33398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
SergeyBiryukov committed Jul 26, 2015
1 parent a92b1d0 commit 8203431
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wp-admin/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function redirect_post($post_id = '') {
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.' ) );
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
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;
Expand All @@ -141,7 +141,7 @@
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;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta4-33430';
$wp_version = '4.3-beta4-33431';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 8203431

Please sign in to comment.