WordPress.org

Make WordPress Core

Ticket #9461: 9461-abspath-corrected.patch

File 9461-abspath-corrected.patch, 809 bytes (added by hakre, 6 years ago)

ABSPATH well defined

  • wp-admin/load-scripts.php

     
    11<?php 
    22 
    33/** Set ABSPATH for execution */ 
    4 define( 'ABSPATH', dirname(dirname(__FILE__)) ); 
    5 define( 'WPINC', '/wp-includes' ); 
     4define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); 
     5define( 'WPINC', 'wp-includes' ); 
    66 
    77/** 
    88 * @ignore 
     
    9797if ( empty($load) ) 
    9898        exit; 
    9999 
    100 require(ABSPATH . '/wp-includes/script-loader.php'); 
    101 require(ABSPATH . '/wp-includes/version.php'); 
     100require(ABSPATH . WPINC . '/script-loader.php'); 
     101require(ABSPATH . WPINC . '/version.php'); 
    102102 
    103103$compress = ( isset($_GET['c']) && $_GET['c'] ); 
    104104$force_gzip = ( $compress && 'gzip' == $_GET['c'] );