WordPress.org

Make WordPress Core

Changeset 10871


Ignore:
Timestamp:
04/05/2009 03:32:49 AM (9 years ago)
Author:
azaozz
Message:

Correct ABSPATH in load-scripts.php, load-styles.php and gears-manifest.php, props hakre, fixes #9461

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/gears-manifest.php

    r10791 r10871  
    88
    99/** Set ABSPATH for execution */
    10 define( 'ABSPATH', dirname(dirname(__FILE__)) );
    11 define( 'WPINC', '/wp-includes' );
     10define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
     11define( 'WPINC', 'wp-includes' );
    1212
    1313/**
  • trunk/wp-admin/load-scripts.php

    r10774 r10871  
    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/**
     
    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'] );
  • trunk/wp-admin/load-styles.php

    r10774 r10871  
    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/**
Note: See TracChangeset for help on using the changeset viewer.