Changeset 14167 for trunk/wp-admin/post.php
- Timestamp:
- 04/20/2010 02:54:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r14139 r14167 219 219 220 220 if ( !current_user_can($post_type_object->delete_cap, $post_id) ) 221 wp_die( __('You are not allowed to move this item to the trash.') );221 wp_die( __('You are not allowed to move this item to the Trash.') ); 222 222 223 223 if ( ! wp_trash_post($post_id) ) 224 wp_die( __('Error in moving to trash...') );224 wp_die( __('Error in moving to Trash.') ); 225 225 226 226 wp_redirect( add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback ) ); … … 232 232 233 233 if ( !current_user_can($post_type_object->delete_cap, $post_id) ) 234 wp_die( __('You are not allowed to move this item out of the trash.') );234 wp_die( __('You are not allowed to move this item out of the Trash.') ); 235 235 236 236 if ( ! wp_untrash_post($post_id) ) 237 wp_die( __('Error in restoring from trash...') );237 wp_die( __('Error in restoring from Trash.') ); 238 238 239 239 wp_redirect( add_query_arg('untrashed', 1, $sendback) ); … … 251 251 $force = ( $force || !MEDIA_TRASH ); 252 252 if ( ! wp_delete_attachment($post_id, $force) ) 253 wp_die( __('Error in deleting. ..') );253 wp_die( __('Error in deleting.') ); 254 254 } else { 255 255 if ( !wp_delete_post($post_id, $force) ) 256 wp_die( __('Error in deleting. ..') );256 wp_die( __('Error in deleting.') ); 257 257 } 258 258
Note: See TracChangeset
for help on using the changeset viewer.