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:
nacin 2010-09-10 17:02:55 +00:00
parent bc1ef8519e
commit f8c8df4f8b
1 changed files with 2 additions and 2 deletions

View File

@ -14,11 +14,11 @@
define('DOING_AJAX', true);
define('WP_ADMIN', true);
require_once('../wp-load.php');
if ( ! isset( $_REQUEST['action'] ) )
die('-1');
require_once('../wp-load.php');
require_once('./includes/admin.php');
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
send_nosniff_header();