From 984c194bf2c38f6f38db39822baa9d5daf046763 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 May 2021 16:52:46 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@50803 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index c7f4543dcd..1ff783f041 100644 --- a/src/wp-admin/update-core.php +++ b/src/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 ) + ); + ?> +