WordPress.org

Make WordPress Core

Ticket #23175: 23175.3.patch

File 23175.3.patch, 2.1 KB (added by Marventus, 23 months ago)

Fixes slash inconsistencies in ABSPATH constant

  • wp-admin/load-scripts.php

     
    88error_reporting(0); 
    99 
    1010/** Set ABSPATH for execution */ 
    11 define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); 
     11define( 'ABSPATH', dirname(dirname(__FILE__)) . '\\' ); 
    1212define( 'WPINC', 'wp-includes' ); 
    1313 
    1414/** 
  • wp-admin/load-styles.php

     
    88error_reporting(0); 
    99 
    1010/** Set ABSPATH for execution */ 
    11 define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); 
     11define( 'ABSPATH', dirname(dirname(__FILE__)) . '\\' ); 
    1212define( 'WPINC', 'wp-includes' ); 
    1313 
    1414/** 
  • wp-admin/setup-config.php

     
    3535 * the database class while being wp-content/db.php aware. 
    3636 * @ignore 
    3737 */ 
    38 define('ABSPATH', dirname(dirname(__FILE__)).'/'); 
     38define('ABSPATH', dirname(dirname(__FILE__)).'\\'); 
    3939define('WPINC', 'wp-includes'); 
    4040define('WP_CONTENT_DIR', ABSPATH . 'wp-content'); 
    4141define('WP_DEBUG', false); 
  • wp-config-sample.php

     /**
     
    8484 
    8585/** Absolute path to the WordPress directory. */ 
    8686if ( !defined('ABSPATH') ) 
    87         define('ABSPATH', dirname(__FILE__) . '/'); 
     87        define('ABSPATH', dirname(__FILE__) . '\\'); 
    8888 
    8989/** Sets up WordPress vars and included files. */ 
    9090require_once(ABSPATH . 'wp-settings.php'); 
  • wp-load.php

     
    1919 */ 
    2020 
    2121/** Define ABSPATH as this file's directory */ 
    22 define( 'ABSPATH', dirname(__FILE__) . '/' ); 
     22define( 'ABSPATH', dirname(__FILE__) . '\\' ); 
    2323