Ticket #41180: 41180.diff
File 41180.diff, 583 bytes (added by , 7 years ago) |
---|
-
src/wp-load.php
18 18 19 19 /** Define ABSPATH as this file's directory */ 20 20 if ( ! defined( 'ABSPATH' ) ) { 21 define( 'ABSPATH', dirname( __FILE__ ) . '/' );21 define( 'ABSPATH', ('/' === dirname( __FILE__ )) ? dirname( __FILE__ ) : dirname( __FILE__ ) . '/' ); 22 22 } 23 23 24 24 error_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 );