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
This commit is contained in:
parent
bad13dd1fe
commit
9188cb1553
@ -988,8 +988,10 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
$comment_status = 'hold';
|
$comment_status = 'hold';
|
||||||
else if ( 'spam' == $comment->comment_approved )
|
else if ( 'spam' == $comment->comment_approved )
|
||||||
$comment_status = 'spam';
|
$comment_status = 'spam';
|
||||||
else
|
else if ( 1 == $comment->comment_approved )
|
||||||
$comment_status = 'approve';
|
$comment_status = 'approve';
|
||||||
|
else
|
||||||
|
$comment_status = $comment->comment_approved;
|
||||||
|
|
||||||
$link = get_comment_link($comment);
|
$link = get_comment_link($comment);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user