Show the number of approved comments instead of all comments on
the dashboard in the "At a glance" section. fixes #26738. props benjmay Built from https://develop.svn.wordpress.org/trunk@29785 git-svn-id: http://core.svn.wordpress.org/trunk@29557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
740df917fa
commit
28bf972789
|
@ -235,8 +235,8 @@ function wp_dashboard_right_now() {
|
|||
}
|
||||
// Comments
|
||||
$num_comm = wp_count_comments();
|
||||
if ( $num_comm && $num_comm->total_comments ) {
|
||||
$text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->total_comments ), number_format_i18n( $num_comm->total_comments ) );
|
||||
if ( $num_comm && $num_comm->approved ) {
|
||||
$text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) );
|
||||
?>
|
||||
<li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue