WordPress.org

Make WordPress Core

Ticket #46900: 46900.diff

File 46900.diff, 603 bytes (added by ianbelanger, 4 months ago)

First pass at fixing issue

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

     
    468468                        $allowed_theme_count++;
    469469                }
    470470
    471                 // If there's a default theme installed, we count that as allowed as well.
    472                 if ( $has_default_theme ) {
    473                         $allowed_theme_count++;
    474                 }
    475 
    476471                if ( $themes_total > $allowed_theme_count ) {
    477472                        $has_unused_themes = true;
    478473                        $themes_inactive   = ( $themes_total - $allowed_theme_count );