Ticket #6941: xmlrpc.php.diff

File xmlrpc.php.diff, 497 bytes (added by josephscott, 4 months ago)
  • xmlrpc.php

    old new  
    698698 
    699699                do_action('xmlrpc_call', 'wp.getCommentCount'); 
    700700 
    701                 return get_comment_count( $post_id ); 
     701                $count = wp_count_comments( $post_id ); 
     702                return array( 
     703                        "approved" => $count->approved, 
     704                        "awaiting_moderation" => $count->moderated, 
     705                        "spam" => $count->spam, 
     706                        "total_comments" => $count->total_comments 
     707                ); 
    702708        } 
    703709 
    704710