[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
Wed Jul 19 22:10:58 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 | Keywords:
Focuses: |
-------------------------+--------------------
Follow up from: https://core.trac.wordpress.org/ticket/57487#comment:71.
The (new in 6.3) `wp_in_development_mode()` helper function cannot be used
to check whether a development mode is enabled or not. It can only check
for a particular development mode setting: either plugin, theme or core.
Being able to check whether a development mode is enabled or not will
enhance the above function and improve consistency. Currently this can be
achieved by using the returned value from `wp_get_development_mode()` as
boolean.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58855>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list