[wp-trac] [WordPress Trac] #57487: Add support for "development mode"

WordPress Trac noreply at wordpress.org
Wed Jan 18 01:18:37 UTC 2023


#57487: Add support for "development mode"
-------------------------+-----------------------------
 Reporter:  azaozz       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------

Comment (by azaozz):

 Seems the most straightforward way would be to add another constant
 similarly to `WP_DEBUG` and `SCRIPT_DEBUG`. Then, when setting the new
 constant perhaps the code can also look at `WP_ENVIRONMENT_TYPE` or at
 environment vars. That would make it even moire convenient to set in some
 cases.

 The new constant should probably set both `WP_DEBUG` and `SCRIPT_DEBUG` to
 true, and also `WP_DEBUG_LOG` and `WP_DEBUG_DISPLAY`. Of course it would
 still be possible to override any of the existing constants. That would
 make it possible to fine-tune the behaviour.

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


More information about the wp-trac mailing list