From d572092fd652aa05ac561acc69e5edbf91dedeeb Mon Sep 17 00:00:00 2001 From: saxmatt Date: Thu, 6 Jan 2005 17:40:19 +0000 Subject: [PATCH] We weren' processing pingbacks right. http://mosquito.wordpress.org/view.php?id=630 git-svn-id: http://svn.automattic.com/wordpress/trunk@2058 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 9a1676e19b..9b52dfd979 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1219,17 +1219,17 @@ class wp_xmlrpc_server extends IXR_Server { $pagelinkedfrom = addslashes($pagelinkedfrom); $original_title = $title; - $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id"); - - if ('open' != $pingstatus) - trackback_response(1, 'Sorry, trackbacks are closed for this item.'); - $comment_post_ID = $post_ID; $comment_author = $title; $comment_author_url = $pagelinkedfrom; $comment_content = $context; $comment_type = 'pingback'; + $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $post_ID"); + + if ('open' != $pingstatus) + die('Sorry, pingbacks are closed for this item.'); + $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); wp_new_comment($commentdata);