Changeset 24593 for trunk/wp-admin/async-upload.php
- Timestamp:
- 07/08/2013 08:05:42 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/async-upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/async-upload.php
r24214 r24593 48 48 if ( 'attachment' != $post->post_type ) 49 49 wp_die( __( 'Unknown post type.' ) ); 50 $post_type_object = get_post_type_object( 'attachment' ); 51 if ( ! current_user_can( $post_type_object->cap->edit_post, $id ) ) 50 if ( ! current_user_can( 'edit_post', $id ) ) 52 51 wp_die( __( 'You are not allowed to edit this item.' ) ); 53 52
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)