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:
Andrew Ozz
2009-11-13 05:39:17 +00:00
parent 4bf4ab5114
commit c875acd15d
6 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -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'];