Commit a272316b authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

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: https://core.svn.wordpress.org/branches/5.5@48619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent c084cd1a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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',
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 *
 * @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.