Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
2c6ce89f
Commit
2c6ce89f
authored
4 years ago
by
lucha
Browse files
Options
Downloads
Patches
Plain Diff
remove patch changing the default log file for WP_DEBUG_LOG
see
#14
for reference
parent
764a64fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
composer.patches.json
+1
-2
1 addition, 2 deletions
composer.patches.json
patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch
+0
-30
0 additions, 30 deletions
...atch-stops-wordpress-from-hardcoding-the-location-o.patch
with
1 addition
and
32 deletions
composer.patches.json
+
1
−
2
View file @
2c6ce89f
...
...
@@ -3,8 +3,7 @@
"johnpbloch/wordpress-core"
:
{
"Patch definition of WP_CONTENT_URL to include SSL when it might not "
:
"patches/core/0052-fix-ssl-wp-content-url.patch"
,
"Anonymize requests to api.wordpress.org for updates"
:
"patches/core/anonymize-update.php.patch"
,
"Do not perform pingbacks and trackbacks when we update via cron"
:
"patches/core/0103-Remove-pingback-trackback.patch"
,
"Stop Wordpress from hardcoding the location of debug.log"
:
"patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch"
,
"Do not perform pingbacks and trackbacks when we update via cron"
:
"patches/core/0103-Remove-pingback-trackback.patch"
,
"Load JS library locally instead than from Googleapis"
:
"patches/core/0155-Removing-reference-to-googleapis-from-wp-includes-up.patch"
,
"Remove Google Fonts API calls"
:
"patches/core/0165-remove-google-fonts.patch"
},
...
...
This diff is collapsed.
Click to expand it.
patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch
deleted
100644 → 0
+
0
−
30
View file @
764a64fc
From 4114adce78ac6350e04b515a3c2f360dea3bce37 Mon Sep 17 00:00:00 2001
From: lucha <lucha@paranoici.org>
Date: Tue, 3 Oct 2017 17:24:49 +0200
Subject: [PATCH 199/229] 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.
---
wp-includes/load.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wp-includes/load.php b/wp-includes/load.php
index b314f63d..b1fbde80 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 );
--
2.17.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment