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:
parent
2baeee4c1f
commit
0a37661254
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue