Skip to content

Commit 801b601

Browse files
committed
Fix incorrect return condition
1 parent 5296351 commit 801b601

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

utils/wp-version-resolver.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@
2323
fclose( $fp );
2424
}
2525

26-
$wp_versions_json = json_decode( file_get_contents( sys_get_temp_dir() . WP_VERSIONS_JSON_FILE ), true );
27-
28-
if ( empty( $wp_version_env ) ) {
29-
echo $wp_version_env;
30-
exit( 0 );
31-
}
26+
$wp_versions_json = json_decode( file_get_contents( $wp_versions_file_path ), true );
3227

3328
if ( empty( $wp_version_env ) || 'latest' === $wp_version_env ) {
3429
$wp_version = array_search( 'latest', $wp_versions_json, true );

0 commit comments

Comments
 (0)