Changeset 18365
- Timestamp:
- 06/28/2011 09:44:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r18346 r18365 437 437 if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) { 438 438 $post = $_post = get_post($attachment_id, ARRAY_A); 439 $post_type_object = get_post_type_object( $post[ 'post_type' ] ); 440 441 if ( !current_user_can( $post_type_object->cap->edit_post, $attachment_id ) ) 442 continue; 443 439 444 if ( isset($attachment['post_content']) ) 440 445 $post['post_content'] = $attachment['post_content'];
Note: See TracChangeset
for help on using the changeset viewer.