Ticket #21679: media.patch
File media.patch, 381 bytes (added by , 13 years ago) |
---|
-
.php
old new 209 209 $time = $post->post_date; 210 210 } 211 211 212 $name = $_FILES[$file_id]['name']; 212 213 $file = wp_handle_upload($_FILES[$file_id], $overrides, $time); 213 $name = $file['name'];214 214 215 215 if ( isset($file['error']) ) 216 216 return new WP_Error( 'upload_error', $file['error'] );