Make WordPress Core

Changeset 8979 for trunk/xmlrpc.php


Ignore:
Timestamp:
09/25/2008 07:56:36 PM (17 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r8952 r8979  
    989989        else if ( 'spam' == $comment->comment_approved )
    990990            $comment_status = 'spam';
     991        else if ( 1 == $comment->comment_approved )
     992            $comment_status = 'approve';
    991993        else
    992             $comment_status = 'approve';
     994            $comment_status = $comment->comment_approved;
    993995
    994996        $link = get_comment_link($comment);
Note: See TracChangeset for help on using the changeset viewer.