Changeset 7707
- Timestamp:
- 04/16/08 22:03:44 (7 months ago)
- Files:
-
- trunk/wp-admin/includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/media.php
r7682 r7707 203 203 check_admin_referer('media-form'); 204 204 205 // Insert media button was clicked206 if ( isset($_POST['html-upload']) && !empty($_FILES) ) {207 // Upload File button was clicked208 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 }216 217 205 if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) { 218 206 $post = $_post = get_post($attachment_id, ARRAY_A);
