Make WordPress Core

Ticket #56499: 56499.patch

File 56499.patch, 614 bytes (added by krunal265, 22 months ago)

patch added.

  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index 5de407f615..742561c184 100644
    a b function wp_dashboard_recent_comments( $total_items = 5 ) { 
    10581058                $comments_query['status'] = 'approve';
    10591059        }
    10601060
    1061         while ( count( $comments ) < $total_items && $possible = get_comments( $comments_query ) ) {
     1061        $comment_count = count( $comments );
     1062        while ( $comment_count < $total_items && $possible = get_comments( $comments_query ) ) {
    10621063                if ( ! is_array( $possible ) ) {
    10631064                        break;
    10641065                }