summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-27 11:03:10 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-27 11:03:10 +0000
commit8db1e81228b0e295199f6e3ee8a99d223c48f8c2 (patch)
tree131d8b23b9e939a9c23f24ec650b343efa918c5c /xmlrpc.php
parent13aff523358403d08dc7fcb0d844a2e6c12df41a (diff)
downloadwordpress-mu-8db1e81228b0e295199f6e3ee8a99d223c48f8c2.tar.gz
wordpress-mu-8db1e81228b0e295199f6e3ee8a99d223c48f8c2.tar.xz
wordpress-mu-8db1e81228b0e295199f6e3ee8a99d223c48f8c2.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@599 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
-rw-r--r--xmlrpc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlrpc.php b/xmlrpc.php
index 0b7e1a4..8127c2c 100644
--- a/xmlrpc.php
+++ b/xmlrpc.php
@@ -1228,16 +1228,16 @@ class wp_xmlrpc_server extends IXR_Server {
$pagelinkedfrom = $wpdb->escape( $pagelinkedfrom );
$original_title = $title;
- $comment_post_ID = $post_ID;
- $comment_author = $title;
+ $comment_post_ID = (int) $post_ID;
+ $comment_author = $this->escape($title);
$comment_author_url = $pagelinkedfrom;
- $comment_content = $context;
+ $comment_content = $this->escape($context);
$comment_type = 'pingback';
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type');
- wp_new_comment($commentdata);
- do_action('pingback_post', $wpdb->insert_id);
+ $comment_ID = wp_new_comment($commentdata);
+ do_action('pingback_post', $comment_ID);
return "Pingback from $pagelinkedfrom to $pagelinkedto registered. Keep the web talking! :-)";
}