Ticket #27387: 27387.patch
File 27387.patch, 737 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/async-upload.php
6 6 * @subpackage Administration 7 7 */ 8 8 9 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { 10 define( 'DOING_AJAX', true ); 11 } 12 9 13 define('WP_ADMIN', true); 10 14 11 15 if ( defined('ABSPATH') ) … … 32 36 header('Content-Type: text/html; charset=' . get_option('blog_charset')); 33 37 34 38 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { 35 define( 'DOING_AJAX', true );36 39 include ABSPATH . 'wp-admin/includes/ajax-actions.php'; 37 40 38 41 send_nosniff_header();