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

WordPress Trac noreply at wordpress.org
Tue Nov 19 05:18:52 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:  General      |    Version:  5.3
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In `wp-config.php`, in the "For developers" section, we have:
 {{{
     define( 'WP_DEBUG', false );
 }}}
 I suggest we also add:
 {{{
 define( 'WP_DEBUG_LOG', true );
 define( 'WP_DEBUG_DISPLAY', false );
 define( 'SCRIPT_DEBUG', true );
 }}}
 This would mean that changing the value of `WP_DEBUG` to `true` would
 enable the log file but not the display, while making it easy to enable
 the display.

 I've been a WordPress developer for many years. This is the first ticket
 I've created. I'm a proponent of good defaults. I occasionally change the
 value of `WP_DEBUG`, but then need to disable it so that I can use the
 WordPress dashboard without scrolling through a list of errors and warning
 from third party themes and plugins.

 And to be honest, I never opened the `@link` to
 https://codex.wordpress.org/Debugging_in_WordPress

 Thanks for considering this enhancement!

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


More information about the wp-trac mailing list