WordPress.org

Make WordPress Core

Changeset 7706


Ignore:
Timestamp:
04/16/2008 10:03:35 PM (10 years ago)
Author:
ryan
Message:

Legacy uploader fix from tellyworth. fixes #6629 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/media.php

    r7683 r7706  
    202202function media_upload_form_handler() {
    203203    check_admin_referer('media-form');
    204 
    205     // Insert media button was clicked
    206     if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
    207         // Upload File button was clicked
    208 
    209         $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
    210 
    211         if ( is_wp_error($id) ) {
    212             $errors['upload_error'] = $id;
    213             $id = false;
    214         }
    215     }
    216204
    217205    if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
Note: See TracChangeset for help on using the changeset viewer.