WordPress.org

Make WordPress Core

Changeset 16873


Ignore:
Timestamp:
12/11/10 07:17:50 (3 years ago)
Author:
dd32
Message:

Include a blank email to prevent a PHP notice when pingbacks are being added, causes XML-RPC responses to be malformed with WP_DEBUG.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r16824 r16873  
    34633463        $comment_post_ID = (int) $post_ID; 
    34643464        $comment_author = $title; 
     3465        $comment_author_email = ''; 
    34653466        $this->escape($comment_author); 
    34663467        $comment_author_url = $pagelinkedfrom; 
     
    34693470        $comment_type = 'pingback'; 
    34703471 
    3471         $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); 
     3472        $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type'); 
    34723473 
    34733474        $comment_ID = wp_new_comment($commentdata); 
Note: See TracChangeset for help on using the changeset viewer.