git-svn-id: https://develop.svn.wordpress.org/trunk@2058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-01-06 17:40:19 +00:00
parent 8841601ea6
commit cbafeff467
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);