WordPress.org

Make WordPress Core

Ticket #21679: media.patch

File media.patch, 381 bytes (added by Willshouse, 6 years ago)

patch

  • .php

    old new  
    209209                        $time = $post->post_date;
    210210        }
    211211
     212        $name = $_FILES[$file_id]['name'];
    212213        $file = wp_handle_upload($_FILES[$file_id], $overrides, $time);
    213         $name = $file['name'];
    214214
    215215        if ( isset($file['error']) )
    216216                return new WP_Error( 'upload_error', $file['error'] );