WordPress.org

Make WordPress Core

Ticket #46900: 46900.2.diff

File 46900.2.diff, 607 bytes (added by mukesh27, 4 months ago)

Updated patch.

  • wp-admin/includes/class-wp-site-health.php

    diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
    index 9839ae358f..c38f5dc664 100644
    a b class WP_Site_Health { 
    457457                        $allowed_theme_count++;
    458458                }
    459459
    460                 // If there's a default theme installed, we count that as allowed as well.
    461                 if ( $has_default_theme ) {
     460                // If there's a default theme installed and not in use, we count that as allowed as well.
     461                if ( $has_default_theme && ! $using_default_theme ) {
    462462                        $allowed_theme_count++;
    463463                }
    464464