Legacy uploader fix from tellyworth. fixes #6629 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd68e1b1e9
commit
02b7abe6fa
@ -202,18 +202,6 @@ add_action('media_upload_media', 'media_upload_handler');
|
||||
function media_upload_form_handler() {
|
||||
check_admin_referer('media-form');
|
||||
|
||||
// Insert media button was clicked
|
||||
if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
|
||||
// Upload File button was clicked
|
||||
|
||||
$id = media_handle_upload('async-upload', $_REQUEST['post_id']);
|
||||
|
||||
if ( is_wp_error($id) ) {
|
||||
$errors['upload_error'] = $id;
|
||||
$id = false;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
|
||||
$post = $_post = get_post($attachment_id, ARRAY_A);
|
||||
if ( isset($attachment['post_content']) )
|
||||
|
Loading…
Reference in New Issue
Block a user