Ticket #24246: 24246.patch
File 24246.patch, 1.1 KB (added by , 11 years ago) |
---|
-
wp-admin/post.php
225 225 226 226 $post = get_post($post_id); 227 227 228 if ( !$post ) 229 wp_die( __('The item you are trying to move to the Trash no longer exists.') ); 230 228 231 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 229 232 wp_die( __('You are not allowed to move this item to the Trash.') ); 230 233 … … 243 246 case 'untrash': 244 247 check_admin_referer('untrash-post_' . $post_id); 245 248 249 if ( !$post ) 250 wp_die( __('The item you are trying to restore from the Trash no longer exists.') ); 251 246 252 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 247 253 wp_die( __('You are not allowed to move this item out of the Trash.') ); 248 254 … … 256 262 case 'delete': 257 263 check_admin_referer('delete-post_' . $post_id); 258 264 265 if ( !$post ) 266 wp_die( __('This item has already been deleted.') ); 267 259 268 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 260 269 wp_die( __('You are not allowed to delete this item.') ); 261 270