WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 17 hours ago

#47985 new enhancement

Site Health: log errors to public file

Reported by: afragen Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Site Health Keywords: has-patch dev-feedback
Focuses: Cc:

Description

As mentioned in #47046 just because WP_DEBUG_LOG is true doesn't mean the file is publicly viewable.

Obviously viewable files are in the ABSPATH usually in wp-content somewhere. A simple test against ABSPATH could be used to move the error from critical to recommended. It still shows as a potential problem but possibly not as severe as an average user might infer.

Attachments (1)

47985.diff (415 bytes) - added by afragen 2 weeks ago.
test error_log file path to ABSPATH

Download all attachments as: .zip

Change History (6)

@afragen
2 weeks ago

test error_log file path to ABSPATH

This ticket was mentioned in Slack in #core by afragen. View the logs.


8 days ago

#2 @afragen
8 days ago

  • Milestone changed from Awaiting Review to 5.3

This ticket was mentioned in Slack in #core-site-health by afragen. View the logs.


3 days ago

This ticket was mentioned in Slack in #core by afragen. View the logs.


18 hours ago

#5 @afragen
17 hours ago

  • Keywords dev-feedback added

The patch is pretty straightforward. What it really needs is a #committer to see if the logic is sound.

Note: See TracTickets for help on using tickets.