From 22f5c53fc9c63c687a7993bfd72ed8d8d5cf7edf Mon Sep 17 00:00:00 2001 From: Jignesh Bhavani Date: Tue, 4 Aug 2026 03:19:44 +0530 Subject: [PATCH] Upgrade/Install: Label the en_US update offer with its own locale. When a localized site is offered both a localized and an en_US core update, and the en_US offer advertises a partial build matching the installed version, the second condition in list_core_update() matches but only assigns a version string when that offer is the only one available. With more than one offer the value falls through to the default, which is built from get_locale() rather than from the offer's own locale. Both buttons then read "Update to version 7.2-de_DE" on a de_DE site, while the second one posts locale=en_US and would install the English package. Add the missing branch so the label names the package the offer installs, which is what the following condition already does for the non-partial case. Props bejignesh, o815. Fixes #65666. --- src/wp-admin/update-core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index f1cd0c0a66132..25dc7211b5ee8 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -47,6 +47,8 @@ function list_core_update( $update ) { if ( $updates && 1 === count( $updates ) ) { // If the only available update is a partial builds, it doesn't need a language-specific version string. $version_string = $update->current; + } else { + $version_string = sprintf( '%s–%s', $update->current, $update->locale ); } } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() ) { $version_string = sprintf( '%s–%s', $update->current, $update->locale );