diff --git a/wp-includes/load.php b/wp-includes/load.php index be5a8fcda750a430cd9df67300e49dd687885356..90b2c0c330b7445a260285831b8f764d909c93c6 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -462,7 +462,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 );