-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Site Health false positive: WP_DEBUG_LOG warning when debug.log is outside wp-content - Ticket #64071 #10684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hbhalodia
wants to merge
32
commits into
WordPress:trunk
Choose a base branch
from
hbhalodia:fix/issue-64071
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+520
−14
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f99e009
CoreTrac-64071 Show different warning if debug.log is publicly access…
hbhalodia bcebdf8
CoreTrac-64071 Update the wordings and code structure
hbhalodia 3749fef
CoreTrac-64071 Add the directory separator to absolute path to preven…
hbhalodia 8636002
CoreTrac-64071 Update wordings in message to show in site-health for …
hbhalodia ffda9d8
CoreTrac-64071 Check the directory of log instead of checking file
hbhalodia b98ece6
CoreTrac-64071 Fix phpcs error
hbhalodia 2da8e22
CoreTrac-64071 Update the debug_log_path to use error_log config
hbhalodia 97e37bd
Merge branch 'trunk' into fix/issue-64071
hbhalodia ad94980
CoreTrac-64071 Fix grammetical mistake
hbhalodia 551f125
CoreTrac-64071 Update message based on how log file is being set
hbhalodia 825148f
Merge branch 'trunk' into fix/issue-64071
hbhalodia d2a8e12
CoreTrac-64071 Address copilot feedbacks
hbhalodia 940f58a
CoreTrac-64071 Fix phpcs error
hbhalodia 556a7ea
Fix placement of translators comments
westonruter c2704e9
Improve phpdoc return tag
westonruter 205b76e
Use else case
westonruter 8286a6c
Resolve copilot feedbacks related to ternary operator and messaging
hbhalodia 4fee6cf
Merge branch 'trunk' into fix/issue-64071
hbhalodia fc6c9d9
Add private members for debug constant to work with tests
hbhalodia a1cc880
Remove extra variable storage space and use private member
hbhalodia 21a27a6
Add the test cases for the function get_test_is_in_debug_mode
hbhalodia dac31ed
Update failing unit test cases
hbhalodia 51a93ed
Optimise test case to use dry
hbhalodia afc7b60
Fix unit test failing with error
hbhalodia fde7a6c
Fix phpcs issue and update messaging in unit tests
hbhalodia 0ae1b81
Update the wp_debug_display private value to be set
hbhalodia 9b2d315
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter fe85708
Fix tests in PHP 8.5 where setAccessible is deprecated
westonruter aed8356
Address copilot feedbacks
hbhalodia 6d644ab
Merge branch 'trunk' into fix/issue-64071
hbhalodia 962ac3d
Resolve failed unit test and copilot feedbacks
hbhalodia 636c1a1
Add @ticket annotation to tests
hbhalodia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,6 +29,21 @@ class WP_Site_Health { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| private $timeout_missed_cron = null; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| private $timeout_late_cron = null; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @var bool | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| private $wp_debug; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @var bool|string | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| private $wp_debug_log; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @var bool|null | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+43
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @var bool | |
| */ | |
| private $wp_debug; | |
| /** | |
| * @var bool|string | |
| */ | |
| private $wp_debug_log; | |
| /** | |
| * @var bool|null | |
| * @var bool | |
| * @since 5.2.0 | |
| */ | |
| private $wp_debug; | |
| /** | |
| * @var bool|string | |
| * @since 5.2.0 | |
| */ | |
| private $wp_debug_log; | |
| /** | |
| * @var bool|null | |
| * @since 5.2.0 |
hbhalodia marked this conversation as resolved.
Show resolved
Hide resolved
hbhalodia marked this conversation as resolved.
Show resolved
Hide resolved
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property documentation lacks @SInCE tags and descriptive text. Consider adding fuller documentation:
@since X.X.Xand description like 'Whether WP_DEBUG is enabled.' for wp_debug, 'Value of WP_DEBUG_LOG constant (boolean or file path string).' for wp_debug_log, and 'Value of WP_DEBUG_DISPLAY constant or null if not defined.' for wp_debug_display.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @westonruter, Do we need to add
@sincetag here? So do I add@since 7.0.0, because we are adding the property to class, but ticket is on future release state, not sure if need to add it.