equal
deleted
inserted
replaced
12 if ( ! defined( 'WP_ADMIN' ) ) { |
12 if ( ! defined( 'WP_ADMIN' ) ) { |
13 define( 'WP_ADMIN', true ); |
13 define( 'WP_ADMIN', true ); |
14 } |
14 } |
15 |
15 |
16 if ( defined( 'ABSPATH' ) ) { |
16 if ( defined( 'ABSPATH' ) ) { |
17 require_once( ABSPATH . 'wp-load.php' ); |
17 require_once ABSPATH . 'wp-load.php'; |
18 } else { |
18 } else { |
19 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
19 require_once dirname( __DIR__ ) . '/wp-load.php'; |
20 } |
20 } |
21 |
21 |
22 /** Allow for cross-domain requests (from the front end). */ |
22 /** Allow for cross-domain requests (from the front end). */ |
23 send_origin_headers(); |
23 send_origin_headers(); |
24 |
24 |
25 require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
25 require_once ABSPATH . 'wp-admin/includes/admin.php'; |
26 |
26 |
27 nocache_headers(); |
27 nocache_headers(); |
28 |
28 |
29 /** This action is documented in wp-admin/admin.php */ |
29 /** This action is documented in wp-admin/admin.php */ |
30 do_action( 'admin_init' ); |
30 do_action( 'admin_init' ); |