Call send_origin_headers() from admin-ajax.php. Props nacin. fixes #21024
git-svn-id: http://core.svn.wordpress.org/trunk@22001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
71d750b450
commit
566145f911
|
@ -16,13 +16,16 @@
|
|||
define( 'DOING_AJAX', true );
|
||||
define( 'WP_ADMIN', true );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
|
||||
/** Allow for cross-domain requests (from the frontend). */
|
||||
send_origin_headers();
|
||||
|
||||
// Require an action parameter
|
||||
if ( empty( $_REQUEST['action'] ) )
|
||||
die( '0' );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
|
||||
/** Load WordPress Administration APIs */
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue