[wp-trac] [WordPress Trac] #23175: Make get_home_path() return consistent slashes

WordPress Trac noreply at wordpress.org
Tue May 14 22:03:50 UTC 2013


#23175: Make get_home_path() return consistent slashes
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |       Owner:  SergeyBiryukov
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  3.6
Component:  Filesystem      |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 I'd suggest to normalize the slashes with `str_replace( '\\', '/', ... )`
 before doing any string manipulations. This is what the core does in a few
 functions.

 Using `DIRECTORY_SEPERATOR` was previously discussed in #15598, #17494,
 #20849, and #22267. The consensus in each ticket was that it's not needed.

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


More information about the wp-trac mailing list