WordPress.org

Make WordPress Core

Changeset 11783


Ignore:
Timestamp:
08/06/09 20:48:59 (5 years ago)
Author:
westi
Message:

Ensure that XMLRPC clients can tell the difference between unapproved and spam comments. Fixes #10510 props josephscott.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r11773 r11783  
    10561056        $comment_date_gmt = mysql2date("Ymd\TH:i:s", $comment->comment_date_gmt, false); 
    10571057 
    1058         if ( 0 == $comment->comment_approved ) 
     1058        if ( '0' == $comment->comment_approved ) 
    10591059            $comment_status = 'hold'; 
    10601060        else if ( 'spam' == $comment->comment_approved ) 
    10611061            $comment_status = 'spam'; 
    1062         else if ( 1 == $comment->comment_approved ) 
     1062        else if ( '1' == $comment->comment_approved ) 
    10631063            $comment_status = 'approve'; 
    10641064        else 
Note: See TracChangeset for help on using the changeset viewer.