Changeset 47198 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r47122 r47198 16 16 17 17 if ( defined( 'ABSPATH' ) ) { 18 require_once ( ABSPATH . 'wp-load.php' );18 require_once ABSPATH . 'wp-load.php'; 19 19 } else { 20 require_once ( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );20 require_once dirname( __DIR__ ) . '/wp-load.php'; 21 21 } 22 22 23 require_once ( ABSPATH . 'wp-admin/admin.php' );23 require_once ABSPATH . 'wp-admin/admin.php'; 24 24 25 25 header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); 26 26 27 27 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { 28 include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );28 require ABSPATH . 'wp-admin/includes/ajax-actions.php'; 29 29 30 30 send_nosniff_header();
Note: See TracChangeset
for help on using the changeset viewer.