[wp-trac] [WordPress Trac] #20849: 'ABSPATH' Invalid with Windows Servers

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 6 16:20:56 UTC 2012


#20849: 'ABSPATH' Invalid with Windows Servers
--------------------------+----------------------
 Reporter:  admintiger    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Filesystem    |     Version:  3.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:10 admintiger]:
 > Problems arise with file-path string comparisons, file-path string
 searches, and file-path string search and replace operations where slashes
 can be of either type. Why not avoid the potential for all such problems
 by making forward slashes the WordPress standard throughout?

 I doubt that would help much. Plenty of plugins would still use
 `dirname(__FILE__)` to get current path and perform comparisons and string
 operations on their own, just like they do now.

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


More information about the wp-trac mailing list