GC_Ajax_Response::send()
最后更新于:2021-11-26 09:12:19
GC_Ajax_Response::send()Display XML formatted responses.
源文件
文件: gc-includes/class-gc-ajax-response.php
public function send() {
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );
echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><gc_ajax>";
foreach ( (array) $this->responses as $response ) {
echo $response;
}
echo '</gc_ajax>';
if ( gc_doing_ajax() ) {
gc_die();
} else {
die();
}
}