WordPress.org

Make WordPress Core

Ticket #26592: 26592.diff

File 26592.diff, 1.9 KB (added by barry, 4 years ago)
  • wp-admin/load-scripts.php

     
    88error_reporting(0);
    99
    1010/** Set ABSPATH for execution */
    11 define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
     11if ( !defined( 'ABSPATH' ) )
     12        define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
    1213define( 'WPINC', 'wp-includes' );
    1314
    1415$load = $_GET['load'];
  • wp-admin/load-styles.php

     
    88error_reporting(0);
    99
    1010/** Set ABSPATH for execution */
    11 define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
     11if ( !defined( 'ABSPATH' ) )
     12        define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
    1213define( 'WPINC', 'wp-includes' );
    1314
    1415require( ABSPATH . 'wp-admin/includes/noop.php' );
  • wp-admin/setup-config.php

     
    2828 */
    2929error_reporting(0);
    3030
    31 define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     31if ( !defined( 'ABSPATH' ) )
     32        define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
    3233
    3334require( ABSPATH . 'wp-settings.php' );
    3435
  • wp-load.php

     
    1919 */
    2020
    2121/** Define ABSPATH as this file's directory */
    22 define( 'ABSPATH', dirname(__FILE__) . '/' );
     22if ( !defined( 'ABSPATH' ) )
     23        define( 'ABSPATH', dirname(__FILE__) . '/' );
    2324
    2425error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    2526