WordPress.org

Make WordPress Core

Changeset 10611


Ignore:
Timestamp:
02/20/09 21:39:20 (5 years ago)
Author:
ryan
Message:

Append .txt to import files rather than .import. Props donncha

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/opml.php

    r10175 r10611  
    9393        } else { // try to get the upload file. 
    9494            $overrides = array('test_form' => false, 'test_type' => false); 
     95            $_FILES['userfile']['name'] .= '.txt'; 
    9596            $file = wp_handle_upload($_FILES['userfile'], $overrides); 
    9697 
  • trunk/wp-admin/includes/import.php

    r9119 r10611  
    6161function wp_import_handle_upload() { 
    6262    $overrides = array( 'test_form' => false, 'test_type' => false ); 
    63     $_FILES['import']['name'] .= '.import'; 
     63    $_FILES['import']['name'] .= '.txt'; 
    6464    $file = wp_handle_upload( $_FILES['import'], $overrides ); 
    6565 
Note: See TracChangeset for help on using the changeset viewer.