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

WordPress Trac noreply at wordpress.org
Tue May 14 21:36:49 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 Marventus):

 {{{
 it's not really an issue, since Windows allows to use both types of
 slashes
 }}}
 Well, it could be if you are doing path string comparisons. What if we
 used {{{DIRECTORY_SEPARATOR}}} instead?

 {{{
 define('ABSPATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
 }}}


 {{{
 it's out of scope for this ticket
 }}}
 If you agree with the above, should I create a new ticket?
 Thanks!

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


More information about the wp-trac mailing list