Defines WP_ENV if it is not already defined. 

PR for #1119