[2.5] Stop to remove the 'all' from wp_count_comments(), closes #10441

This commit is contained in:
Claudio Sanches 2016-02-29 13:35:24 -03:00
parent d4df89e1b9
commit 19019f75ca
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ class WC_Comments {
}
$stats['total_comments'] = $total;
$stats['all'] = $total;
foreach ( $approved as $key ) {
if ( empty( $stats[ $key ] ) ) {
$stats[ $key ] = 0;