mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Don't try to load WP in admin-ajax if we have no action to take.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc1ef8519e
commit
f8c8df4f8b
@ -14,11 +14,11 @@
|
|||||||
define('DOING_AJAX', true);
|
define('DOING_AJAX', true);
|
||||||
define('WP_ADMIN', true);
|
define('WP_ADMIN', true);
|
||||||
|
|
||||||
require_once('../wp-load.php');
|
|
||||||
|
|
||||||
if ( ! isset( $_REQUEST['action'] ) )
|
if ( ! isset( $_REQUEST['action'] ) )
|
||||||
die('-1');
|
die('-1');
|
||||||
|
|
||||||
|
require_once('../wp-load.php');
|
||||||
|
|
||||||
require_once('./includes/admin.php');
|
require_once('./includes/admin.php');
|
||||||
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
||||||
send_nosniff_header();
|
send_nosniff_header();
|
||||||
|
Loading…
Reference in New Issue
Block a user