Doesn’t correctly read WP_ENV
-
Thanks for a great plugin! Running this with Bedrock, I noticed that the following snippet returns
WP_ENVIRONMENT_TYPE
for both conditions:private function get_env() { if ( function_exists( 'getenv' ) ) { if ( getenv( 'WP_ENVIRONMENT_TYPE' ) !== false ) { return getenv( 'WP_ENVIRONMENT_TYPE' ); } if ( getenv( 'WP_ENV' ) !== false ) { return getenv( 'WP_ENVIRONMENT_TYPE' ); } } // ... }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Doesn’t correctly read WP_ENV’ is closed to new replies.