[wp-trac] [WordPress Trac] #48720: Define all debugging constants for developers in wp-config.php
WordPress Trac
noreply at wordpress.org
Tue Nov 19 08:15:59 UTC 2019
#48720: Define all debugging constants for developers in wp-config.php
----------------------------+------------------------------
Reporter: davidnash | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 5.3
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by psykro):
Replying to [comment:6 SergeyBiryukov]:
> Replying to [comment:4 psykro]:
> > I tend to agree with that, my only suggested addition would be a)
updating the document link and b) including one or two examples, which
would (hopefully) lead developers to read the document.
>
> The link was already updated to https://wordpress.org/support/article
/debugging-in-wordpress/ in [46740].
>
> `WP_DEBUG_LOG` creates a public log file, which would be a privacy
concern. As mentioned in comment:33:ticket:28551, it could also overflow a
user's available disk space if accidentally left enabled.
>
> At a glance, it doesn't look like there are any "safe" examples that
won't inadvertently slow down the site or introduce other negative effects
if enabled without fully understanding the consequences, so I tend to
think a link to the documentation should be enough for now.
I just wanted to make sure you saw that my examples were added in the
comment block, not actually turning those constants on in the code. I
agree that simply turning them on would be a bad thing, hence adding them
to the comment block.
However if you did, but your concern is that adding them there would cause
folks to inadvertently turn these things on without understanding the
consequences, I'll keep my mouth shut :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48720#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list