mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Always show "Configure" links on dashboard widgets in IE6, fix "Right Now" comments counts, fixes #11129
git-svn-id: https://develop.svn.wordpress.org/trunk@12183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -777,7 +777,7 @@ function wp_count_comments( $post_id = 0 ) {
|
||||
$known_types = array_keys( $approved );
|
||||
foreach( (array) $count as $row_num => $row ) {
|
||||
// Don't count post-trashed toward totals
|
||||
if ( 'post-trashed' != $row['comment_approved'] )
|
||||
if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] )
|
||||
$total += $row['num_comments'];
|
||||
if ( in_array( $row['comment_approved'], $known_types ) )
|
||||
$stats[$approved[$row['comment_approved']]] = $row['num_comments'];
|
||||
|
||||
Reference in New Issue
Block a user