Changeset 24199
- Timestamp:
- 05/08/2013 05:52:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r23929 r24199 134 134 } 135 135 136 $p = $post_id;137 138 139 136 if ( empty($post->ID) ) 140 137 wp_die( __('You attempted to edit an item that doesn’t exist. Perhaps it was deleted?') ); … … 224 221 check_admin_referer('trash-post_' . $post_id); 225 222 226 $post = get_post($post_id);227 228 223 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 229 224 wp_die( __('You are not allowed to move this item to the Trash.') );
Note: See TracChangeset
for help on using the changeset viewer.