Commit 856cd0f128 for wordpress.org

commit 856cd0f12843f7bf91005a30d74781e1ee0bc5de
Author: audrasjb <audrasjb@git.wordpress.org>
Date:   Tue Dec 1 13:39:56 2026 +0000

    Upgrade/Install: Count each translation update in the update counts.

    The Updates badge in the admin menu and the admin bar always counted translation updates as "1", even when there were more. Since 7.2, the Updates screen lists each translation update and shows the real number in the heading, for example "Translations (3)", so the badge and the screen no longer match.

    This changeset ensures each available translation update is taken into account, the same way plugin and theme updates are counted.

    Developed in https://github.com/WordPress/wordpress-develop/pull/16210.

    Follow-up to [65226].

    Props sainathpoojary, wildworks, krupalpanchal, audrasjb.
    Fixes #66806.
    See #42281.


    Built from https://develop.svn.wordpress.org/trunk@65850


    git-svn-id: http://core.svn.wordpress.org/trunk@64879 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/update.php b/wp-includes/update.php
index b70220b790..2387454a4a 100644
--- a/wp-includes/update.php
+++ b/wp-includes/update.php
@@ -1112,8 +1112,8 @@ function wp_get_update_data() {
 		}
 	}

-	if ( ( $core || $plugins || $themes ) && wp_get_translation_updates() ) {
-		$counts['translations'] = 1;
+	if ( $core || $plugins || $themes ) {
+		$counts['translations'] = count( wp_get_translation_updates() );
 	}

 	$counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'] + $counts['translations'];
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 571f0349a3..9fa304398d 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.3-alpha-65846';
+$wp_version = '7.3-alpha-65850';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.