mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Upload links fix. fixes #2337
git-svn-id: http://svn.automattic.com/wordpress/trunk@3480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5b9962831
commit
9afb7a18db
@ -36,7 +36,7 @@ switch ($step) {
|
||||
|
||||
<div style="width: 48%; float: left;">
|
||||
<h3><?php _e('Or choose from your local disk:'); ?></h3>
|
||||
<input name="userfile" type="file" size="30" />
|
||||
<input id="userfile" name="userfile" type="file" size="30" />
|
||||
</div>
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ foreach ($categories as $category) {
|
||||
else // try to get the upload file.
|
||||
{
|
||||
$overrides = array('test_form' => false, 'test_type' => false);
|
||||
$file = wp_handle_upload($_FILES['import'], $overrides);
|
||||
$file = wp_handle_upload($_FILES['userfile'], $overrides);
|
||||
|
||||
if ( isset($file['error']) )
|
||||
die($file['error']);
|
||||
|
Loading…
Reference in New Issue
Block a user