Changeset 24593 for trunk/wp-admin/post.php
- Timestamp:
- 07/08/2013 08:05:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r24304 r24593 140 140 wp_die( __( 'Unknown post type.' ) ); 141 141 142 if ( ! current_user_can( $post_type_object->cap->edit_post, $post_id ) )142 if ( ! current_user_can( 'edit_post', $post_id ) ) 143 143 wp_die( __( 'You are not allowed to edit this item.' ) ); 144 144 … … 236 236 wp_die( __( 'Unknown post type.' ) ); 237 237 238 if ( ! current_user_can( $post_type_object->cap->delete_post, $post_id ) )238 if ( ! current_user_can( 'delete_post', $post_id ) ) 239 239 wp_die( __( 'You are not allowed to move this item to the Trash.' ) ); 240 240 … … 260 260 wp_die( __( 'Unknown post type.' ) ); 261 261 262 if ( ! current_user_can( $post_type_object->cap->delete_post, $post_id ) )262 if ( ! current_user_can( 'delete_post', $post_id ) ) 263 263 wp_die( __( 'You are not allowed to move this item out of the Trash.' ) ); 264 264 … … 279 279 wp_die( __( 'Unknown post type.' ) ); 280 280 281 if ( ! current_user_can( $post_type_object->cap->delete_post, $post_id ) )281 if ( ! current_user_can( 'delete_post', $post_id ) ) 282 282 wp_die( __( 'You are not allowed to delete this item.' ) ); 283 283
Note: See TracChangeset
for help on using the changeset viewer.