Changeset 21087
- Timestamp:
- 06/15/2012 05:52:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/wp-admin/media-upload.php
r19528 r21087 37 37 $errors = array(); 38 38 39 if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) 40 wp_die( __( 'Cheatin’ uh?' ) ); 41 39 42 if ( isset($_POST['html-upload']) && !empty($_FILES) ) { 40 43 check_admin_referer('media-form'); … … 58 61 exit; 59 62 } 63 64 if ( isset( $_REQUEST['post_id'] ) ) 65 wp_die( __( 'Cheatin’ uh?' ) ); 60 66 61 67 $title = __('Upload New Media'); … … 116 122 117 123 } else { 124 if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) 125 wp_die( __( 'Cheatin’ uh?' ) ); 118 126 119 127 // upload type: image, video, file, ..?
Note: See TracChangeset
for help on using the changeset viewer.