From 29cd5d902dea1eb6a5b2024f999adad0896f1be3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 May 2021 16:54:06 +0000 Subject: [PATCH] Upgrade/Install: Display plugin and theme update counts on WordPress Updates screen. This restores the information that was previously included in a title attribute tooltip on pending updates link in the toolbar. Follow-up to [50801]. Props sabernhardt, audrasjb, mukesh27, davidbaumwald. Fixes #53031. Built from https://develop.svn.wordpress.org/trunk@50803 git-svn-id: http://core.svn.wordpress.org/trunk@50412 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 24 ++++++++++++++++++++++-- wp-includes/version.php | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index c7f4543dcd..1ff783f041 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -449,8 +449,18 @@ function list_plugin_updates() { } else { $core_update_version = $core_updates[0]->current; } + + $plugins_count = count( $plugins ); ?> -

+

+ (%d)', + __( 'Plugins' ), + number_format_i18n( $plugins_count ) + ); + ?> +

@@ -602,8 +612,18 @@ function list_theme_updates() { } $form_action = 'update-core.php?action=do-theme-upgrade'; + + $themes_count = count( $themes ); ?> -

+

+ (%d)', + __( 'Themes' ), + number_format_i18n( $themes_count ) + ); + ?> +