Make WordPress Core

Ticket #51182: 51182.diff

File 51182.diff, 739 bytes (added by bobbingwide, 4 years ago)

patch to support Windows

  • 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..fcbb6a4ce4 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 = $theme->get_stylesheet_directory();
     210                    $stylesheet_dir = str_replace( '\\', '/', $stylesheet_dir);
     211                        if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) {
    210212                                continue;
    211213                        }
    212214