diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php
index 16e99332a6..fcbb6a4ce4 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 = $theme->get_stylesheet_directory(); |
| 210 | $stylesheet_dir = str_replace( '\\', '/', $stylesheet_dir); |
| 211 | if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) { |
210 | 212 | continue; |
211 | 213 | } |
212 | 214 | |