From 9188cb155314545f85241a100fe889453cb3c9a7 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@8979 602fd350-edb4-49c9-b593-d223f7449a82 --- xmlrpc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index 3028463293..a8fc67949e 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);