Issue Summary
If other plugins define the constant WP_ENVIRONMENT_TYPE
then a PHP warning is displayed as the constant is already defined.
I develop plugins that allow the user to change this setting and having this define in the local-bootstrap.php
file of each new application release causes issues.
There really is no development reason to add the WP_ENVIRONMENT_TYPE
to the bootstrap file. If you’re looking for a place to put it, it should belong in the site’s wp-config.php
file. At least when it’s here it can be correctly overriden in a safe simple manner.
Pretty please.