equal
deleted
inserted
replaced
18 * |
18 * |
19 * Responds with an error or success XML message. |
19 * Responds with an error or success XML message. |
20 * |
20 * |
21 * @since 0.71 |
21 * @since 0.71 |
22 * |
22 * |
23 * @param int|bool $error Whether there was an error. |
23 * @param mixed $error Whether there was an error. |
24 * Default '0'. Accepts '0' or '1'. |
24 * Default '0'. Accepts '0' or '1', true or false. |
25 * @param string $error_message Error message if an error occurred. |
25 * @param string $error_message Error message if an error occurred. |
26 */ |
26 */ |
27 function trackback_response($error = 0, $error_message = '') { |
27 function trackback_response($error = 0, $error_message = '') { |
28 header('Content-Type: text/xml; charset=' . get_option('blog_charset') ); |
28 header('Content-Type: text/xml; charset=' . get_option('blog_charset') ); |
29 if ($error) { |
29 if ($error) { |
30 echo '<?xml version="1.0" encoding="utf-8"?'.">\n"; |
30 echo '<?xml version="1.0" encoding="utf-8"?'.">\n"; |