Skip to content

Commit 964b65f

Browse files
committed
Fix locale suffix for download URLs
1 parent 5dc087e commit 964b65f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Core_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,9 @@ private function get_download_url( $version, $locale = 'en_US', $file_type = 'zi
12631263
}
12641264

12651265
$locale_subdomain = 'en_US' === $locale ? '' : substr( $locale, 0, 2 ) . '.';
1266+
$locale_suffix = 'en_US' === $locale ? '' : "-{$locale}";
12661267

1267-
return "https://{$locale_subdomain}wordpress.org/wordpress-{$version}-{$locale}.{$file_type}";
1268+
return "https://{$locale_subdomain}wordpress.org/wordpress-{$version}{$locale_suffix}.{$file_type}";
12681269
}
12691270

12701271
/**

0 commit comments

Comments
 (0)