[wp-trac] [WordPress Trac] #57573: Provide a way to signify a "development mode" (independently of `WP_DEBUG`)

WordPress Trac noreply at wordpress.org
Sat Jan 28 13:29:13 UTC 2023


#57573: Provide a way to signify a "development mode" (independently of `WP_DEBUG`)
-------------------------+-----------------------------
 Reporter:  flixos90     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:57573 flixos90]:
 > The other question is whether we want this to be...
 > 1. Either just a constant (e.g. `WP_DEVELOPMENT_MODE`)...
 > 2. Or just a filter (e.g. `wp_development_mode`)...
 > 3. Or a combination of both (e.g. function `wp_development_mode()` that
 checks the constant if set but also runs the value through the filter).

 I think a function makes sense, it would complement
 `wp_get_environment_type()`.

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


More information about the wp-trac mailing list