[wp-trac] [WordPress Trac] #15598: Use DIRECTORY_SEPARATOR for file paths instead of '/'

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 15 01:53:53 UTC 2011


#15598: Use DIRECTORY_SEPARATOR for file paths instead of '/'
-------------------------+-------------------------
 Reporter:  jazzmind     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:  3.0.1
 Severity:  normal       |  Resolution:  worksforme
 Keywords:  needs-patch  |
-------------------------+-------------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Future Release =>


Comment:

 Using DIRECTORY_SEPERATOR clutters the code to me IMO, Using / is so much
 simpler given it's supported on both Windows and Unix systems.

 We use `str_replace('\\', '/'..` quite often in functions such as
 `register_activation_hook`

 If there is anywhere that does not work well with Windows filepaths,
 please file a bug report for the individual issue.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15598#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list