diff --git a/wp-includes/load.php b/wp-includes/load.php index c7a46de5cc410b4535c5c480f017dc249451674c..d824af1403cadc26ffec88213689c8a884945c27 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -327,7 +327,8 @@ function wp_debug_mode() { if ( WP_DEBUG_LOG ) { ini_set( 'log_errors', 1 ); - ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' ); + // AI patch: do not hardcode the debug.log location, let php.in set it + // ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' ); } } else { 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 );