Fix wrong file name in error message in `update-wp-env.php` (#37891)

This commit is contained in:
Gan Eng Chin 2023-04-22 00:41:48 +08:00 committed by GitHub
commit b44eca1c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix wrong file name in error message in update-wp-env.php.

View File

@ -14,7 +14,7 @@ if ( ! class_exists( UPDATE_WP_JSON::class ) ) {
if ( file_exists( $this->wp_env_path ) ) {
$this->wp_json = json_decode( file_get_contents( $this->wp_env_path ), true );
} else {
throw new Exception( ".wp_env.json doesn't exist!" );
throw new Exception( ".wp-env.json doesn't exist!" );
}
$env = getenv();