diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 5f3af1c16b..628a5378fc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2263,8 +2263,8 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, if ( isset( $_comment_pending_count[$post->ID] ) ) { $pending_comments = absint( $_comment_pending_count[$post->ID] ); } else { - $_comment_pending_count_temp = (array) get_pending_comments_num( array( $post->ID ) ); - $pending_comments = $_comment_pending_count[$post->ID] = $_comment_pending_count_temp[$post->ID]; + $_comment_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); + $pending_comments = $_comment_pending_count[$post->ID] = $_comment_pending_count_temp; } if ( $user_can ) { $post_link = "";