Changeset 24593 for trunk/wp-admin/includes/media.php
- Timestamp:
- 07/08/2013 08:05:42 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r24585 r24593 497 497 if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) { 498 498 $post = $_post = get_post($attachment_id, ARRAY_A); 499 $post_type_object = get_post_type_object( $post[ 'post_type' ] ); 500 501 if ( !current_user_can( $post_type_object->cap->edit_post, $attachment_id ) ) 499 500 if ( !current_user_can( 'edit_post', $attachment_id ) ) 502 501 continue; 503 502
Note: See TracChangeset
for help on using the changeset viewer.