Make WordPress Core

Ticket #41180: 41180.diff

File 41180.diff, 583 bytes (added by Presskopp, 7 years ago)
  • src/wp-load.php

     
    1818
    1919/** Define ABSPATH as this file's directory */
    2020if ( ! defined( 'ABSPATH' ) ) {
    21         define( 'ABSPATH', dirname( __FILE__ ) . '/' );
     21        define( 'ABSPATH', ('/' === dirname( __FILE__ )) ? dirname( __FILE__ ) : dirname( __FILE__ ) . '/' );
    2222}
    2323
    2424error_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 );