[wp-trac] [WordPress Trac] #58855: Fix and enhance wp_in_development_mode() to be able to return whether a development mode is beiung used
WordPress Trac
noreply at wordpress.org
Fri Jul 21 15:41:47 UTC 2023
#58855: Fix and enhance wp_in_development_mode() to be able to return whether a
development mode is beiung used
-------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by flixos90):
It seems to me we're defining a solution here without defining a problem.
Repeating my question from the initial ticket here: ''What'' would we use
a general development mode for? How would `wp_is_development_mode()`
differ from `WP_DEBUG`?
Until we can answer this question, I think this change is only for
consistency sake with other functions that do different things, and would
lead to confusion for which use-cases to rely on development mode vs debug
mode.
If we make this change, we need to have a solid rationale what to use it
for and most importantly how to differentiate it from `WP_DEBUG`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58855#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list