diff --git a/wp-includes/load.php b/wp-includes/load.php index b314f63da06e72f4f9271739b93051da61bd621e..b1fbde80074784cf2207625146f4a7f0efe44684 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -343,7 +343,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 );