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. Merges [48856] to the 5.5 branch. Fixes #51064. Built from https://develop.svn.wordpress.org/branches/5.5@48857 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f25fa66be
commit
c3e02f4262
|
@ -134,10 +134,11 @@ function wp_check_php_mysql_versions() {
|
||||||
* The type can be set via the `WP_ENVIRONMENT_TYPE` global system variable,
|
* The type can be set via the `WP_ENVIRONMENT_TYPE` global system variable,
|
||||||
* or a constant of the same name.
|
* or a constant of the same name.
|
||||||
*
|
*
|
||||||
* Possible values include 'development', 'staging', 'production'. If not set,
|
* Possible values include 'local', 'development', 'staging', 'production'.
|
||||||
* the type defaults to 'production'.
|
* If not set, the type defaults to 'production'.
|
||||||
*
|
*
|
||||||
* @since 5.5.0
|
* @since 5.5.0
|
||||||
|
* @since 5.5.1 The 'local' type was added.
|
||||||
*
|
*
|
||||||
* @return string The current environment type.
|
* @return string The current environment type.
|
||||||
*/
|
*/
|
||||||
|
@ -149,6 +150,7 @@ function wp_get_environment_type() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$wp_environments = array(
|
$wp_environments = array(
|
||||||
|
'local',
|
||||||
'development',
|
'development',
|
||||||
'staging',
|
'staging',
|
||||||
'production',
|
'production',
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5.1-alpha-48854';
|
$wp_version = '5.5.1-alpha-48857';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue