Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58855, comment 5


Ignore:
Timestamp:
07/20/2023 05:56:15 AM (14 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58855, comment 5

    v1 v2  
    2626I don't believe there would be a difference. If it's a valid value, `wp_get_development_mode()` should return that value.
    2727
    28 However, we have a snag: `''` is a valid value in `wp_get_development_mode()`. Casting it to boolean would mean `wp_in_development_mode( '' )` would always return `false`, even though explicitly checking for `''` should be `true` based on `default-constants.php`.
     28However, we have a snag: `''` is a valid value in `wp_get_development_mode()`. Casting it to boolean would mean `wp_is_development_mode( '' )` would always return `false`, even though explicitly checking for `''` should be `true` based on `default-constants.php`.
    2929
    3030Note the description of `wp_is_development_mode()`: