[wp-trac] [WordPress Trac] #51182: Theme_Installer_skin::do_overwrite does not work on a Windows server

WordPress Trac noreply at wordpress.org
Fri Aug 28 21:21:34 UTC 2020


#51182: Theme_Installer_skin::do_overwrite does not work on a Windows server
-----------------------------+------------------------------
 Reporter:  bobbingwide      |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  5.5
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by bobbingwide):

 This change resolves the problem.

 {{{
 foreach ( $all_themes as $theme ) {
     $stylesheet_dir = $theme->get_stylesheet_directory();
     $stylesheet_dir = str_replace( '\\', '/', $stylesheet_dir);
     if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) {
         continue;
    }
    $current_theme_data = $theme;
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51182#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list