Bootstrap/Load: Add local environment type to wp_get_environment_type().

This gives developers a better control over their existing development workflow and ensures that `local` is not the exact same as `development` if it does not need to be.

Props claytoncollie, johnbillion, jeremyfelt, kreppar, dushakov, TimothyBlynJacobs, Ipstenu, khag7, knutsp, Clorith, markjaquith, joostdevalk, SergeyBiryukov.
Fixes #51064.
Built from https://develop.svn.wordpress.org/trunk@48856


git-svn-id: http://core.svn.wordpress.org/trunk@48618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-08-24 22:32:05 +00:00
parent 0c8644c071
commit 8169ae35a0
2 changed files with 5 additions and 3 deletions

View File

@ -134,10 +134,11 @@ function wp_check_php_mysql_versions() {
* The type can be set via the `WP_ENVIRONMENT_TYPE` global system variable,
* or a constant of the same name.
*
* Possible values include 'development', 'staging', 'production'. If not set,
* the type defaults to 'production'.
* Possible values include 'local', 'development', 'staging', 'production'.
* If not set, the type defaults to 'production'.
*
* @since 5.5.0
* @since 5.5.1 The 'local' type was added.
*
* @return string The current environment type.
*/
@ -149,6 +150,7 @@ function wp_get_environment_type() {
}
$wp_environments = array(
'local',
'development',
'staging',
'production',

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48855';
$wp_version = '5.6-alpha-48856';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.