From 0a37661254acd6a0fe5d098beb54d585c95fd84b Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 25 Sep 2008 19:56:36 +0000 Subject: [PATCH] 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 --- xmlrpc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index 302846329..a8fc67949 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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);