WordPress.org

Make WordPress Core

Ticket #46900: 46900.3.diff

File 46900.3.diff, 854 bytes (added by azaozz, 8 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

     
    464464                // If this is a child theme, increase the allowed theme count by one, to account for the parent.
    465465                if ( $active_theme->parent() ) {
    466466                        $allowed_theme_count++;
     467
     468                        if ( $active_theme->get_template() === WP_DEFAULT_THEME ) {
     469                                $using_default_theme = true;
     470                        }
    467471                }
    468472
    469                 // If there's a default theme installed, we count that as allowed as well.
    470                 if ( $has_default_theme ) {
     473                // If there's a default theme installed and not in use, we count that as allowed as well.
     474                if ( $has_default_theme && ! $using_default_theme ) {
    471475                        $allowed_theme_count++;
    472476                }
    473477