diff --git a/wp-includes/load.php b/wp-includes/load.php index 7c9c2e775762f197f00f8e1b53ea4be9ffec46e1..9e5b23d0ff567279f1e2909e4a4ea20cfccd25a4 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -344,7 +344,8 @@ function wp_debug_mode() { if ( $log_path ) { ini_set( 'log_errors', 1 ); - ini_set( 'error_log', $log_path ); + // 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 );