diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php
index 16e99332a6..29e8e37091 100644
a
|
b
|
class Theme_Installer_Skin extends WP_Upgrader_Skin { |
206 | 206 | $all_themes = wp_get_themes( array( 'errors' => null ) ); |
207 | 207 | |
208 | 208 | foreach ( $all_themes as $theme ) { |
209 | | if ( rtrim( $theme->get_stylesheet_directory(), '/' ) !== $folder ) { |
| 209 | $stylesheet_dir = wp_normalize_path( $theme->get_stylesheet_directory() ); |
| 210 | if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) { |
210 | 211 | continue; |
211 | 212 | } |
212 | 213 | |