Changeset 18346 for trunk/wp-admin/includes/media.php
- Timestamp:
- 06/27/2011 03:56:42 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r18290 r18346 229 229 ), $post_data ); 230 230 231 // This should never be set as it would then overwrite an existing attachment. 232 if ( isset( $attachment['ID'] ) ) 233 unset( $attachment['ID'] ); 234 231 235 // Save the data 232 236 $id = wp_insert_attachment($attachment, $file, $post_id); … … 281 285 'post_content' => $content, 282 286 ), $post_data ); 287 288 // This should never be set as it would then overwrite an existing attachment. 289 if ( isset( $attachment['ID'] ) ) 290 unset( $attachment['ID'] ); 283 291 284 292 // Save the attachment metadata
Note: See TracChangeset
for help on using the changeset viewer.