git-svn-id: http://svn.automattic.com/wordpress/trunk@2058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-06 17:40:19 +00:00
parent a4857688db
commit d572092fd6
1 changed files with 5 additions and 5 deletions

View File

@ -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);