Make WordPress Core

Changes between Initial Version and Version 11 of Ticket #58855


Ignore:
Timestamp:
08/21/2023 07:45:23 PM (13 months ago)
Author:
oglekler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58855

    • Property Keywords has-patch 2nd-opinion added
    • Property Summary changed from Fix and enhance wp_in_development_mode() to be able to return whether a development mode is beiung used to Fix and enhance wp_is_development_mode() to be able to return whether a development mode is beiung used
  • Ticket #58855 – Description

    initial v11  
    11Follow up from: https://core.trac.wordpress.org/ticket/57487#comment:71.
    22
    3 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.
     3The (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.
    44
    55Being 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.