WordPress.org

Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #20849


Ignore:
Timestamp:
06/06/12 08:40:21 (3 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20849

    • Property Cc knut@… added
    • Property Severity changed from major to normal
  • Ticket #20849 – Description

    initial v4  
    11The 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: 
    22 
    3 define('ABSPATH', dirname(__FILE__) . '/'); 
    4  
    5 (Note: the text editor mangled the "magical" PHP FILE constant) 
     3`define('ABSPATH', dirname(__FILE__) . '/');` 
    64 
    75Additional 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: 
     
    1311I suggest changing: 
    1412 
    15 define('ABSPATH', dirname(__FILE__) . '/'); 
     13`define('ABSPATH', dirname(__FILE__) . '/');` 
    1614 
    1715to: 
    1816 
    19 define('ABSPATH', str_replace(chr(92), '/', dirname(__FILE__)) . '/'); 
     17`define('ABSPATH', str_replace(chr(92), '/', dirname(__FILE__)) . '/');` 
    2018 
    2119in each of the following places to correct those problems: