mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
0c8644c071
commit
8169ae35a0
@ -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.6-alpha-48855';
|
$wp_version = '5.6-alpha-48856';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user