Changeset 24593 for trunk/wp-admin/edit.php
- Timestamp:
- 07/08/2013 08:05:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r24207 r24593 79 79 80 80 foreach( (array) $post_ids as $post_id ) { 81 if ( !current_user_can( $post_type_object->cap->delete_post, $post_id) )81 if ( !current_user_can( 'delete_post', $post_id) ) 82 82 wp_die( __('You are not allowed to move this item to the Trash.') ); 83 83 … … 98 98 $untrashed = 0; 99 99 foreach( (array) $post_ids as $post_id ) { 100 if ( !current_user_can( $post_type_object->cap->delete_post, $post_id) )100 if ( !current_user_can( 'delete_post', $post_id) ) 101 101 wp_die( __('You are not allowed to restore this item from the Trash.') ); 102 102 … … 113 113 $post_del = get_post($post_id); 114 114 115 if ( !current_user_can( $post_type_object->cap->delete_post, $post_id) )115 if ( !current_user_can( 'delete_post', $post_id ) ) 116 116 wp_die( __('You are not allowed to delete this item.') ); 117 117
Note: See TracChangeset
for help on using the changeset viewer.