[wp-trac] [WordPress Trac] #48720: Define all debugging constants for developers in wp-config.php

WordPress Trac noreply at wordpress.org
Tue Nov 19 09:38:09 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):

 Good point.

 I think the "confusion" for developers comes in due to this line in the
 comment

 {{{
 It is strongly recommended that plugin and theme developers use WP_DEBUG
 in their development environments.
 }}}

 This would lead someone to assume that this is the only way to enable
 debugging. I agree that adding the link should suffice, but often folks
 don't get that far (which is an entirely different "problem" and in no way
 WordPress' one to solve.

 Therefore it might be useful to update the comment to make certain things
 clearer.


 {{{
 /**
  * For developers: WordPress debugging mode.
  *
  * Change this to true to enable the display of notices during
 development.
  * While it is strongly recommended that plugin and theme developers use
 WP_DEBUG
  * in their development environments, it is also important to understand
 how WP_DEBUG
  * works.
  *
  * Therefore, before just turning it on, please ensure to visit the
 documentation below
  * for information on other constants that can be used for debugging, in
 conjunction with
  * WP_DEBUG.
  *
  * @link https://wordpress.org/support/article/debugging-in-wordpress/
  */
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48720#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list