Ticket #33133: 33133.patch
| File 33133.patch, 1.4 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/post.php
278 278 wp_die( __( 'Unknown post type.' ) ); 279 279 280 280 if ( ! current_user_can( 'delete_post', $post_id ) ) 281 wp_die( __( 'You are not allowed to move this item out ofthe Trash.' ) );281 wp_die( __( 'You are not allowed to restore this item from the Trash.' ) ); 282 282 283 283 if ( ! wp_untrash_post( $post_id ) ) 284 284 wp_die( __( 'Error in restoring from Trash.' ) ); -
src/wp-admin/upload.php
129 129 wp_die( __( 'You are not allowed to move this post to the trash.' ) ); 130 130 131 131 if ( !wp_trash_post( $post_id ) ) 132 wp_die( __( 'Error in moving to trash.' ) );132 wp_die( __( 'Error in moving to Trash.' ) ); 133 133 } 134 134 $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location ); 135 135 break; … … 141 141 wp_die( __( 'You are not allowed to move this post out of the trash.' ) ); 142 142 143 143 if ( !wp_untrash_post( $post_id ) ) 144 wp_die( __( 'Error in restoring from trash.' ) );144 wp_die( __( 'Error in restoring from Trash.' ) ); 145 145 } 146 146 $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); 147 147 break;