<?php
/**
- * Send XML response back to AJAX request.
+ * Send XML response back to Ajax request.
*
* @package WordPress
* @since 2.1.0
public $responses = array();
/**
- * Constructor - Passes args to {@link WP_Ajax_Response::add()}.
+ * Constructor - Passes args to WP_Ajax_Response::add().
*
* @since 2.1.0
* @see WP_Ajax_Response::add()
foreach ( (array) $this->responses as $response )
echo $response;
echo '</wp_ajax>';
- if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
+ if ( wp_doing_ajax() )
wp_die();
else
die();