[wp-trac] [WordPress Trac] #33999: WordPress Update issue

WordPress Trac noreply at wordpress.org
Tue Oct 13 17:28:05 UTC 2015


#33999: WordPress Update issue
-----------------------------+-----------------------------
 Reporter:  MrZen88          |       Owner:  SergeyBiryukov
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  4.4
Component:  Upgrade/Install  |     Version:  4.3.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  assigned => accepted
 * milestone:  Awaiting Review => 4.4


Comment:

 Replying to [comment:6 MrZen88]:
 > It always a good practice tu use DIRECTORY_SEPARATOR when you specify a
 path if you want your code to work on Windows and linux. Because linux
 understand a slash ('/') and windows understand a backslash ('\') as
 directory separator.

 Windows actually understands both, this was previously discussed in #20849
 and other tickets.

 But it does look like we should check both `'\'` and `'/'` in case of a
 relative path here.

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


More information about the wp-trac mailing list