wp/wp-admin/admin-post.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    11 /** We are located in WordPress Administration Screens */
    11 /** We are located in WordPress Administration Screens */
    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 /** Load WordPress Bootstrap */
    17 	require_once ABSPATH . 'wp-load.php';
    17 require_once dirname( __DIR__ ) . '/wp-load.php';
    18 } else {
       
    19 	require_once dirname( __DIR__ ) . '/wp-load.php';
       
    20 }
       
    21 
    18 
    22 /** Allow for cross-domain requests (from the front end). */
    19 /** Allow for cross-domain requests (from the front end). */
    23 send_origin_headers();
    20 send_origin_headers();
    24 
    21 
    25 require_once ABSPATH . 'wp-admin/includes/admin.php';
    22 require_once ABSPATH . 'wp-admin/includes/admin.php';