Skip to content
Snippets Groups Projects
Commit 2db568fc authored by lucha's avatar lucha Committed by agata
Browse files

patch: stops wordpress from hardcoding the location of debug.log

by default, if DEBUG_LOG is true, wordpress will set error_log to wp-content/debug.log,
which is publicly accessible. We want instead to set it via our own php.ini. This patch
removes the Wordpress code responsible for modifying the error_log location.
parent 80647040
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment