Ticket #21993: ajax-send-unit-test-compat.diff
File ajax-send-unit-test-compat.diff, 641 bytes (added by , 13 years ago) |
---|
-
wordpress/wp-includes/class-wp-ajax-response.php
126 126 * @since 2.1.0 127 127 */ 128 128 function send() { 129 if ( defined( 'WP_DOING_TESTS' ) && WP_DOING_TESTS ) { 130 return; 131 } 129 132 header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); 130 133 echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>"; 131 134 foreach ( (array) $this->responses as $response )