Fix double escaping in wp_getComments. Props josephscott. fixes #12281 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@13207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-19 00:28:23 +00:00
parent 139f4ba5d1
commit fbd6ccfb3a
1 changed files with 2 additions and 1 deletions

View File

@ -1075,6 +1075,7 @@ class wp_xmlrpc_server extends IXR_Server {
* @return array
*/
function wp_getComments($args) {
$raw_args = $args;
$this->escape($args);
$blog_id = (int) $args[0];
@ -1117,7 +1118,7 @@ class wp_xmlrpc_server extends IXR_Server {
for ( $i = 0; $i < $num_comments; $i++ ) {
$comment = wp_xmlrpc_server::wp_getComment(array(
$blog_id, $username, $password, $comments[$i]->comment_ID,
$raw_args[0], $raw_args[1], $raw_args[2], $comments[$i]->comment_ID,
));
$comments_struct[] = $comment;
}