[wp-trac] [WordPress Trac] #57487: Add support for "development mode"
WordPress Trac
noreply at wordpress.org
Fri Jun 9 12:06:49 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: needs-unit-tests has-patch | Focuses:
----------------------------------------+-----------------------
Comment (by azaozz):
Replying to [comment:18 flixos90]:
> I've implemented this in a first pass in https://github.com/WordPress
/wordpress-develop/pull/4565.
Thanks! The PR looks good imho perhaps with exception of the
`wp_development_mode` filter (that filters the constant). This type of
filters don't seem to be working particularly well and thinking it would
be better without them.
Also seems it would be good to set `WP_DEBUG`, `WP_DEBUG_DISPLAY`, (maybe
`WP_DEBUG_LOG` if the `WP_DEBUG_DISPLAY` is off), `SCRIPT_DEBUG`, etc.
when development mode is on. I'll comment on the PR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57487#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list