Changes between Version 1 and Version 2 of Ticket #58855, comment 5
- Timestamp:
- 07/20/2023 05:56:15 AM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58855, comment 5
v1 v2 26 26 I don't believe there would be a difference. If it's a valid value, `wp_get_development_mode()` should return that value. 27 27 28 However, we have a snag: `''` is a valid value in `wp_get_development_mode()`. Casting it to boolean would mean `wp_i n_development_mode( '' )` would always return `false`, even though explicitly checking for `''` should be `true` based on `default-constants.php`.28 However, 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`. 29 29 30 30 Note the description of `wp_is_development_mode()`: