Changes from branches/2.8/wp-admin/media-upload.php at r11639 to trunk/wp-admin/media-upload.php at r11380
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/media-upload.php
r11639 r11380 30 30 31 31 if ( isset($_GET['inline']) ) { 32 $errors = array(); 32 33 if ( isset($_GET['upload-page-form']) ) { 34 $errors = media_upload_form_handler(); 35 36 $location = 'upload.php'; 37 if ( $errors ) 38 $location .= '?message=3'; 39 40 wp_redirect( admin_url($location) ); 41 } 33 42 34 43 if ( isset($_POST['html-upload']) && !empty($_FILES) ) { … … 40 49 $id = false; 41 50 } 42 }43 44 if ( isset($_GET['upload-page-form']) ) {45 $errors = array_merge($errors, (array) media_upload_form_handler());46 47 $location = 'upload.php';48 if ( $errors )49 $location .= '?message=3';50 51 wp_redirect( admin_url($location) );52 51 } 53 52
Note: See TracChangeset
for help on using the changeset viewer.