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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-19 00:28:23 +00:00
parent 91e0c6a98c
commit aba18243f0
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;
}