Changeset 24593 for trunk/wp-admin/includes/template.php
- Timestamp:
- 07/08/2013 08:05:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r24377 r24593 241 241 function get_inline_data($post) { 242 242 $post_type_object = get_post_type_object($post->post_type); 243 if ( ! current_user_can( $post_type_object->cap->edit_post, $post->ID) )243 if ( ! current_user_can( 'edit_post', $post->ID ) ) 244 244 return; 245 245
Note: See TracChangeset
for help on using the changeset viewer.