WordPress.org

Make WordPress Core

Ticket #15325: 15325.diff

File 15325.diff, 621 bytes (added by duck_, 3 years ago)
  • wp-admin/includes/import.php

     
    5656 * 
    5757 * @since 2.0.0 
    5858 * 
    59  * @return array 
     59 * @return array Uploaded file's details on success, error message on failure 
    6060 */ 
    6161function wp_import_handle_upload() { 
    6262        if ( !isset($_FILES['import']) ) { 
     
    7373 
    7474        $url = $file['url']; 
    7575        $type = $file['type']; 
    76         $file = addslashes( $file['file'] ); 
     76        $file = $file['file']; 
    7777        $filename = basename( $file ); 
    7878 
    7979        // Construct the object array