WordPress.org

Make WordPress Core

Ticket #22856: 22856.5.diff

File 22856.5.diff, 754 bytes (added by dd32, 19 months ago)
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    380380                $status = 'install'; 
    381381 
    382382                $installed_theme = wp_get_theme( $theme->slug ); 
    383                 if ( $installed_theme->exists() ) { 
     383 
     384                if ( $installed_theme->exists() && glob( $installed_theme->theme_root . '/' . $installed_theme->stylesheet . '/*' ) ) { 
    384385                        if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) ) 
    385386                                $status = 'latest_installed'; 
    386387                        elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )