Changeset 18356 for branches/3.1/wp-admin/includes/media.php
- Timestamp:
- 06/27/2011 09:36:48 PM (14 years ago)
- Location:
- branches/3.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
wp-admin/includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1
-
branches/3.1/wp-admin/includes/media.php
r18018 r18356 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.