Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024.

git-svn-id: https://develop.svn.wordpress.org/trunk@19911 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-02-12 19:02:07 +00:00
parent 52838cbf4d
commit 682c9bd310

View File

@ -131,6 +131,9 @@ class WP_Ajax_Response {
foreach ( (array) $this->responses as $response )
echo $response;
echo '</wp_ajax>';
wp_die();
if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
wp_die();
else
die();
}
}