Make WordPress Core

Ticket #51182: 51182-2.diff

File 51182-2.diff, 690 bytes (added by wpamitkumar, 3 years ago)
  • src/wp-admin/includes/class-theme-installer-skin.php

    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 { 
    206206                $all_themes         = wp_get_themes( array( 'errors' => null ) );
    207207
    208208                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 ) {
    210211                                continue;
    211212                        }
    212213