[wp-trac] [WordPress Trac] #57487: Add support for "development mode"
WordPress Trac
noreply at wordpress.org
Wed Jan 18 01:49:23 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):
Replying to [comment:5 SergeyBiryukov]:
> Replying to [comment:2 azaozz]:
> > 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.
>
> It's worth noting that `'development' === wp_get_environment_type()`
[source:tags/6.1.1/src/wp-includes/default-constants.php?marks=82-86#L80
already sets WP_DEBUG to true] as of [48372] / #33161, perhaps
`SCRIPT_DEBUG` should be added there too?
Yes, think so.
> Just curious, is there a use case where setting `WP_ENVIRONMENT_TYPE` to
`development` is not enough and a new constant is needed?
Unfortunately `WP_ENVIRONMENT_TYPE` can only be set to either 'local' or
'development'. What is both of these are true/needed? Same for 'staging'
and 'development', or 'local' and 'production'. What if I want to test
production on a local environment? This makes the whole functionality
there pretty useless imho :(
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57487#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list