send_origin_headers() in admin-post.php.
props nickdaugherty, fixes #24600. Built from https://develop.svn.wordpress.org/trunk@25036 git-svn-id: http://core.svn.wordpress.org/trunk@25023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f71a4ae220
commit
d5c4413aaa
|
@ -14,6 +14,9 @@ if ( defined('ABSPATH') )
|
||||||
else
|
else
|
||||||
require_once('../wp-load.php');
|
require_once('../wp-load.php');
|
||||||
|
|
||||||
|
/** Allow for cross-domain requests (from the frontend). */
|
||||||
|
send_origin_headers();
|
||||||
|
|
||||||
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
Loading…
Reference in New Issue