Changeset 22105 for trunk/wp-admin/includes/media.php
- Timestamp:
- 10/03/2012 06:49:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22093 r22105 270 270 $overrides = array('test_form'=>false); 271 271 272 $file = wp_handle_sideload($file_array, $overrides); 272 $time = current_time( 'mysql' ); 273 if ( $post = get_post( $post_id ) ) { 274 if ( substr( $post->post_date, 0, 4 ) > 0 ) 275 $time = $post->post_date; 276 } 277 278 $file = wp_handle_sideload( $file_array, $overrides, $time ); 273 279 if ( isset($file['error']) ) 274 280 return new WP_Error( 'upload_error', $file['error'] );
Note: See TracChangeset
for help on using the changeset viewer.