WordPress.org

Make WordPress Core

Ticket #47299: class-wp-site-health.php.patch

File class-wp-site-health.php.patch, 571 bytes (added by ajayghaghretiya1, 5 months ago)

updated the file with the patch, Also check class exist.

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

     
    612612                }
    613613
    614614                // If not default Twenty* theme exists.
    615                 if ( ! $has_default_theme ) {
     615                if ( ! $has_default_theme && class_exists( 'WP_Theme' ) && ! WP_Theme::get_core_default_theme() ) {
    616616                        $result['status'] = 'recommended';
    617617
    618618                        $result['label'] = __( 'Have a default theme available' );