[wp-trac] [WordPress Trac] #57487: Add support for "development mode"
WordPress Trac
noreply at wordpress.org
Wed Jul 19 20:18:58 UTC 2023
#57487: Add support for "development mode"
-------------------------------------------------+-------------------------
Reporter: azaozz | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-dev-note needs- | Focuses:
patch |
-------------------------------------------------+-------------------------
Changes (by azaozz):
* keywords: has-patch has-unit-tests has-dev-note => has-unit-tests has-
dev-note needs-patch
Comment:
Replying to [comment:69 flixos90]:
> what is being discussed here does not fit in the scope of this ticket
Not so sure about that :)
The scope of this ticket is to add support for a development mode, not to
decide how fragmented that support should be.
> The reason WP_DEVELOPMENT_MODE was introduced was to allow certain core
behaviors to change based on what kind of development is happening...
That's not exactly true too. The idea is/was to be able to set development
mode in general, with some additional settings that could be used in
particular cases. However the main use of `WP_DEVELOPMENT_MODE` remains a
boolean: true/false. That's the most useful part of it.
Anyway, unfortunately the new helper function `wp_in_development_mode()`
is now incapable to fulfill that requirement so all places that need to
check whether a development more is enabled or not will have to check the
constant directly. Not a huge deal, just... inconsistent and makes it hard
to test :(
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57487#comment:71>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list