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