Changeset 14585 for trunk/wp-admin/post.php
- Timestamp:
- 05/12/2010 08:45:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r14571 r14585 153 153 wp_die( __('You attempted to edit an item that doesn’t exist. Perhaps it was deleted?') ); 154 154 155 if ( !current_user_can($post_type_object-> edit_cap, $post_id) )155 if ( !current_user_can($post_type_object->cap->edit_post, $post_id) ) 156 156 wp_die( __('You are not allowed to edit this item.') ); 157 157 … … 218 218 $post = & get_post($post_id); 219 219 220 if ( !current_user_can($post_type_object-> delete_cap, $post_id) )220 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 221 221 wp_die( __('You are not allowed to move this item to the Trash.') ); 222 222 … … 231 231 check_admin_referer('untrash-' . $post_type . '_' . $post_id); 232 232 233 if ( !current_user_can($post_type_object-> delete_cap, $post_id) )233 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 234 234 wp_die( __('You are not allowed to move this item out of the Trash.') ); 235 235 … … 244 244 check_admin_referer('delete-' . $post_type . '_' . $post_id); 245 245 246 if ( !current_user_can($post_type_object-> delete_cap, $post_id) )246 if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 247 247 wp_die( __('You are not allowed to delete this item.') ); 248 248
Note: See TracChangeset
for help on using the changeset viewer.