[wp-trac] [WordPress Trac] #58855: Fix and enhance wp_is_development_mode() to be able to return whether a development mode is beiung used (was: 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
Mon Aug 21 19:45:23 UTC 2023


#58855: Fix and enhance wp_is_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 2nd-opinion  |     Focuses:
-----------------------------------+---------------------
Changes (by oglekler):

 * keywords:  has-patch => has-patch 2nd-opinion


Old description:

> 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.

New description:

 Follow up from: https://core.trac.wordpress.org/ticket/57487#comment:71.

 The (new in 6.3) `wp_is_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#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list