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:
Andrew Nacin 2013-08-16 19:59:08 +00:00
parent f71a4ae220
commit d5c4413aaa

View File

@ -14,6 +14,9 @@ if ( defined('ABSPATH') )
else
require_once('../wp-load.php');
/** Allow for cross-domain requests (from the frontend). */
send_origin_headers();
require_once(ABSPATH . 'wp-admin/includes/admin.php');
nocache_headers();