ideasonpurpose/docker-wordpress-dev

Switch from WP_ENV to WP_ENVIRONMENT_TYPE

Closed this issue · 0 comments

WordPress 5.5 added native support for environment types:

https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/

might as well switch to that instead of the WP_ENV workaround.

/**
* Useful idea from https://roots.io/
*/
define('WP_ENV', 'development');