Fix wrong file name in error message in `update-wp-env.php` (#37891)
This commit is contained in:
commit
b44eca1c59
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Fix wrong file name in error message in update-wp-env.php.
|
|
@ -14,7 +14,7 @@ if ( ! class_exists( UPDATE_WP_JSON::class ) ) {
|
||||||
if ( file_exists( $this->wp_env_path ) ) {
|
if ( file_exists( $this->wp_env_path ) ) {
|
||||||
$this->wp_json = json_decode( file_get_contents( $this->wp_env_path ), true );
|
$this->wp_json = json_decode( file_get_contents( $this->wp_env_path ), true );
|
||||||
} else {
|
} else {
|
||||||
throw new Exception( ".wp_env.json doesn't exist!" );
|
throw new Exception( ".wp-env.json doesn't exist!" );
|
||||||
}
|
}
|
||||||
|
|
||||||
$env = getenv();
|
$env = getenv();
|
||||||
|
|
Loading…
Reference in New Issue