WordPress 3.4
[autoinstalls/wordpress.git] / wp-includes / class-wp-ajax-response.php
index 9c225c116ab95ee3dc84c6fe7b741a1525a5b0ed..2bf974a26502353772db308819bac9dabe093020 100644 (file)
@@ -131,8 +131,9 @@ class WP_Ajax_Response {
                foreach ( (array) $this->responses as $response )
                        echo $response;
                echo '</wp_ajax>';
-               die();
+               if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
+                       wp_die();
+               else
+                       die();
        }
 }
-
-?>