WordPress.org

Make WordPress Core

Ticket #16446: ticket.16446.diff

File ticket.16446.diff, 586 bytes (added by ptahdunbar, 4 years ago)
  • wp-includes/comment.php

     
    897897                // Don't count post-trashed toward totals 
    898898                if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] ) 
    899899                        $total += $row['num_comments']; 
    900                 if ( in_array( $row['comment_approved'], $known_types ) ) 
     900                if ( in_array( $row['comment_approved'], $known_types, true ) ) 
    901901                        $stats[$approved[$row['comment_approved']]] = $row['num_comments']; 
    902902        } 
    903903