Correct ABSPATH in load-scripts.php, load-styles.php and gears-manifest.php, props hakre, fixes #9461
git-svn-id: https://develop.svn.wordpress.org/trunk@10871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
17bd503fb4
commit
9b28447049
@ -7,8 +7,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/** Set ABSPATH for execution */
|
/** Set ABSPATH for execution */
|
||||||
define( 'ABSPATH', dirname(dirname(__FILE__)) );
|
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
||||||
define( 'WPINC', '/wp-includes' );
|
define( 'WPINC', 'wp-includes' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/** Set ABSPATH for execution */
|
/** Set ABSPATH for execution */
|
||||||
define( 'ABSPATH', dirname(dirname(__FILE__)) );
|
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
||||||
define( 'WPINC', '/wp-includes' );
|
define( 'WPINC', 'wp-includes' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -97,8 +97,8 @@ $load = explode(',', $load);
|
|||||||
if ( empty($load) )
|
if ( empty($load) )
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
require(ABSPATH . '/wp-includes/script-loader.php');
|
require(ABSPATH . WPINC . '/script-loader.php');
|
||||||
require(ABSPATH . '/wp-includes/version.php');
|
require(ABSPATH . WPINC . '/version.php');
|
||||||
|
|
||||||
$compress = ( isset($_GET['c']) && $_GET['c'] );
|
$compress = ( isset($_GET['c']) && $_GET['c'] );
|
||||||
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
|
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/** Set ABSPATH for execution */
|
/** Set ABSPATH for execution */
|
||||||
define( 'ABSPATH', dirname(dirname(__FILE__)) );
|
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
||||||
define( 'WPINC', '/wp-includes' );
|
define( 'WPINC', 'wp-includes' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user