Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #57487, comment 71


Ignore:
Timestamp:
07/19/2023 08:38:15 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57487, comment 71

    v4 v5  
    1515Think we discussed this already, can't find exactly where, sorry, maybe some PR. The idea is to expand what WP_DEBUG does based on whether dev. mode is enabled. Like perhaps throwing fatal errors with stack trace for cases that now throw only warnings, etc. Also keep in mind WP_DEBUG is auto-set whenever dev. mode is enabled. They should compliment one another not be mutually exclusive.
    1616
    17 Anyway, unfortunately the new helper function `wp_in_development_mode()` is now incapable to fulfill that requirement so all places that need to check whether a development more is enabled or not will have to use `(bool) wp_get_development_mode()`. Inconsistent :(
     17Anyway, unfortunately the new helper function `wp_in_development_mode()` is now incapable to fulfill that requirement so all places that need to check whether development mode is enabled or not will have to use `(bool) wp_get_development_mode()`. Inconsistent :(