equal
deleted
inserted
replaced
5 * @package WordPress |
5 * @package WordPress |
6 */ |
6 */ |
7 |
7 |
8 if (empty($wp)) { |
8 if (empty($wp)) { |
9 require_once('./wp-load.php'); |
9 require_once('./wp-load.php'); |
10 wp('tb=1'); |
10 wp( array( 'tb' => '1' ) ); |
11 } |
11 } |
12 |
12 |
13 /** |
13 /** |
14 * trackback_response() - Respond with error or success XML message |
14 * trackback_response() - Respond with error or success XML message |
15 * |
15 * |
16 * @param int|bool $error Whether there was an error or not |
16 * @param int|bool $error Whether there was an error |
17 * @param string $error_message Error message if an error occurred |
17 * @param string $error_message Error message if an error occurred |
18 */ |
18 */ |
19 function trackback_response($error = 0, $error_message = '') { |
19 function trackback_response($error = 0, $error_message = '') { |
20 header('Content-Type: text/xml; charset=' . get_option('blog_charset') ); |
20 header('Content-Type: text/xml; charset=' . get_option('blog_charset') ); |
21 if ($error) { |
21 if ($error) { |
106 wp_new_comment($commentdata); |
106 wp_new_comment($commentdata); |
107 |
107 |
108 do_action('trackback_post', $wpdb->insert_id); |
108 do_action('trackback_post', $wpdb->insert_id); |
109 trackback_response(0); |
109 trackback_response(0); |
110 } |
110 } |
111 ?> |
|