Ensure we support custom comment approval statuses over xmlrpc. Fixes #7792 props josephscott.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-09-25 19:56:36 +00:00
parent 2baeee4c1f
commit 0a37661254
1 changed files with 3 additions and 1 deletions

View File

@ -988,8 +988,10 @@ class wp_xmlrpc_server extends IXR_Server {
$comment_status = 'hold';
else if ( 'spam' == $comment->comment_approved )
$comment_status = 'spam';
else
else if ( 1 == $comment->comment_approved )
$comment_status = 'approve';
else
$comment_status = $comment->comment_approved;
$link = get_comment_link($comment);