[wp-trac] [WordPress Trac] #36965: Updates still fail on Windows hosts

WordPress Trac noreply at wordpress.org
Sat May 28 18:26:08 UTC 2016


#36965: Updates still fail on Windows hosts
-----------------------------+-----------------------------
 Reporter:  billseyLCIS      |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 This seems to rear it's head with every update. file.php does not
 correctly handle Windows style separators, expecting instead of a '\' a
 '/'. The fix is simple, in file.php use:
 {{{#!php
 if ( empty( $filename ) || '.' == $filename || DIRECTORY_SEPARATOR ==
 $filename ) {
 }}}
 instead of:
 {{{#!php
 if ( empty( $filename ) || '.' == $filename || '/' == $filename ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36965>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list