WordPress.org

Make WordPress Core

Ticket #10510: xmlrpc.php.diff

File xmlrpc.php.diff, 719 bytes (added by josephscott, 6 years ago)
  • xmlrpc.php

     
    10551055                $comment_date = mysql2date("Ymd\TH:i:s", $comment->comment_date, false); 
    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 
    10651065                        $comment_status = $comment->comment_approved;