Make WordPress Core

Ticket #47606: 47606.diff

File 47606.diff, 539 bytes (added by dlh, 5 years ago)
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 5a917f6b11..5e90f3dfcb 100644
    function wp_dashboard_site_health() { 
    17781778                $issue_counts = json_decode( $get_issues );
    17791779        }
    17801780
    1781         if ( ! is_object( $issue_counts ) || empty( $issue_counts ) ) {
     1781        if ( ! is_object( $issue_counts ) || ! get_object_vars( $issue_counts ) ) {
    17821782                $issue_counts = (object) array(
    17831783                        'good'        => 0,
    17841784                        'recommended' => 0,