Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #57487, comment 7


Ignore:
Timestamp:
01/18/2023 01:56:38 AM (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57487, comment 7

    v2 v3  
    11Replying to [comment:5 SergeyBiryukov]:
    2 > Replying to [comment:2 azaozz]:
    3 > > The new constant should probably set both `WP_DEBUG` and `SCRIPT_DEBUG` to true, and also `WP_DEBUG_LOG` and `WP_DEBUG_DISPLAY`. Of course it would still be possible to override any of the existing constants. That would make it possible to fine-tune the behaviour.
    4 >
     2
    53> It's worth noting that `'development' === wp_get_environment_type()` [source:tags/6.1.1/src/wp-includes/default-constants.php?marks=82-86#L80 already sets WP_DEBUG to true] as of [48372] / #33161, perhaps `SCRIPT_DEBUG` should be added there too?
    64
    7 Yes, think so.
     5Yes, think so. Also would be a good shortcut to set `WP_DEBUG_LOG` and `WP_DEBUG_DISPLAY` if not set separately.
    86 
    97> Just curious, is there a use case where setting `WP_ENVIRONMENT_TYPE` to `development` is not enough and a new constant is needed?