src/wp-admin/admin-post.php 1 location
|
@@ 16-19 (lines=4) @@
|
| 13 |
|
define( 'WP_ADMIN', true ); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
if ( defined('ABSPATH') ) |
| 17 |
|
require_once(ABSPATH . 'wp-load.php'); |
| 18 |
|
else |
| 19 |
|
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 20 |
|
|
| 21 |
|
/** Allow for cross-domain requests (from the front end). */ |
| 22 |
|
send_origin_headers(); |
src/wp-admin/async-upload.php 1 location
|
@@ 17-20 (lines=4) @@
|
| 14 |
|
define( 'WP_ADMIN', true ); |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
if ( defined('ABSPATH') ) |
| 18 |
|
require_once(ABSPATH . 'wp-load.php'); |
| 19 |
|
else |
| 20 |
|
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 21 |
|
|
| 22 |
|
if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) { |
| 23 |
|
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead |