Changes between Initial Version and Version 4 of Ticket #20849
- Timestamp:
- 06/06/2012 08:40:21 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20849
- Property Cc knut@… added
-
Property
Severity
changed from
major
tonormal
-
Ticket #20849 – Description
initial v4 1 1 The following code defines 'ABSPATH' with mixed backward and forward slashes (like this: 'C:\public\www.example.com/') six places within WordPress when run on a Windows server: 2 2 3 define('ABSPATH', dirname(__FILE__) . '/'); 4 5 (Note: the text editor mangled the "magical" PHP FILE constant) 3 `define('ABSPATH', dirname(__FILE__) . '/');` 6 4 7 5 Additional path strings with forward slashes are subsequently concatenated many places in the core, in plugins, and sometimes in themes, resulting in many invalid filepaths similar to the following example: … … 13 11 I suggest changing: 14 12 15 define('ABSPATH', dirname(__FILE__) . '/'); 13 `define('ABSPATH', dirname(__FILE__) . '/');` 16 14 17 15 to: 18 16 19 define('ABSPATH', str_replace(chr(92), '/', dirname(__FILE__)) . '/'); 17 `define('ABSPATH', str_replace(chr(92), '/', dirname(__FILE__)) . '/');` 20 18 21 19 in each of the following places to correct those problems: