WordPress.org

Make WordPress Core

Ticket #9461: 9461-abspath-corrected-gears-scripts-styles.patch

File 9461-abspath-corrected-gears-scripts-styles.patch, 1.7 KB (added by hakre, 9 years ago)

ABSPATH well defined, update: gears-manifest, load-scrips and load-styles correct alltogether now.

  • wp-admin/gears-manifest.php

     
    77 */
    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/**
    1414 * @ignore
  • 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'] );
  • wp-admin/load-styles.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