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
This commit is contained in:
parent
a4857688db
commit
d572092fd6
10
xmlrpc.php
10
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);
|
||||
|
|
Loading…
Reference in New Issue