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

WordPress Trac noreply at wordpress.org
Mon Jun 26 03:36:51 UTC 2023


#57487: Add support for "development mode"
--------------------------------------+-----------------------
 Reporter:  azaozz                    |       Owner:  flixos90
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.3
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by peterwilsoncc):

 Replying to [comment:12 flixos90]:
 > This leads me to think we need something closer to maybe a
 `WP_DEVELOPMENT_MODE` constant, which for example could be set to
 something like `core`, `plugin`, `theme`. By default it could be either
 not set, or an empty string, signifying that no particular development
 mode at all should be used.

 Sorry, I missed this at the time.

 If different development modes are to be defined, then `site` would be
 helpful for agencies developing sites using both custom themes and custom
 plugins.

 However, I fear that would lead to the problem perceived to exist with the
 environment type variables, the need to check for multiple values.

 If the goal is to avoid a constant that over complicates things then using
 `true` or `false` seems the least complicated way of doing it.

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


More information about the wp-trac mailing list