Changeset 30354 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 11/16/2014 05:46:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r30244 r30354 33 33 require_once( ABSPATH . 'wp-admin/admin.php' ); 34 34 35 if ( !current_user_can('upload_files') )36 wp_die(__('You do not have permission to upload files.'));37 38 header('Content-Type: text/html; charset=' . get_option('blog_charset'));39 40 35 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { 41 36 include( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); … … 47 42 die( '0' ); 48 43 } 44 45 if ( ! current_user_can( 'upload_files' ) ) { 46 wp_die( __( 'You do not have permission to upload files.' ) ); 47 } 48 49 header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) ); 49 50 50 51 // just fetch the detail form for that attachment
Note: See TracChangeset
for help on using the changeset viewer.