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:
parent
52838cbf4d
commit
682c9bd310
@ -131,6 +131,9 @@ class WP_Ajax_Response {
|
|||||||
foreach ( (array) $this->responses as $response )
|
foreach ( (array) $this->responses as $response )
|
||||||
echo $response;
|
echo $response;
|
||||||
echo '</wp_ajax>';
|
echo '</wp_ajax>';
|
||||||
wp_die();
|
if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
|
||||||
|
wp_die();
|
||||||
|
else
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user