Include a blank email to prevent a PHP notice when pingbacks are being added, causes XML-RPC responses to be malformed with WP_DEBUG.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc8dc99e43
commit
566f62b824
|
@ -3462,13 +3462,14 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
$comment_post_ID = (int) $post_ID;
|
$comment_post_ID = (int) $post_ID;
|
||||||
$comment_author = $title;
|
$comment_author = $title;
|
||||||
|
$comment_author_email = '';
|
||||||
$this->escape($comment_author);
|
$this->escape($comment_author);
|
||||||
$comment_author_url = $pagelinkedfrom;
|
$comment_author_url = $pagelinkedfrom;
|
||||||
$comment_content = $context;
|
$comment_content = $context;
|
||||||
$this->escape($comment_content);
|
$this->escape($comment_content);
|
||||||
$comment_type = 'pingback';
|
$comment_type = 'pingback';
|
||||||
|
|
||||||
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type');
|
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type');
|
||||||
|
|
||||||
$comment_ID = wp_new_comment($commentdata);
|
$comment_ID = wp_new_comment($commentdata);
|
||||||
do_action('pingback_post', $comment_ID);
|
do_action('pingback_post', $comment_ID);
|
||||||
|
|
Loading…
Reference in New Issue