diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/js/updates.js --- a/wp/wp-admin/js/updates.js Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/js/updates.js Tue Sep 27 16:37:53 2022 +0200 @@ -33,6 +33,8 @@ var $document = $( document ), __ = wp.i18n.__, _x = wp.i18n._x, + _n = wp.i18n._n, + _nx = wp.i18n._nx, sprintf = wp.i18n.sprintf; wp = wp || {}; @@ -352,8 +354,14 @@ $appearanceNavMenuUpdateCount = $( 'a[href="themes.php"] .update-plugins' ), itemCount; - $adminBarUpdates.find( '.ab-item' ).removeAttr( 'title' ); $adminBarUpdates.find( '.ab-label' ).text( settings.totals.counts.total ); + $adminBarUpdates.find( '.updates-available-text' ).text( + sprintf( + /* translators: %s: Total number of updates available. */ + _n( '%s update available', '%s updates available', settings.totals.counts.total ), + settings.totals.counts.total + ) + ); // Remove the update count from the toolbar if it's zero. if ( 0 === settings.totals.counts.total ) { @@ -963,6 +971,8 @@ var $form = $( '#bulk-action-form' ), $views = $( '.subsubsub' ), $pluginRow = $( this ), + $currentView = $views.find( '[aria-current="page"]' ), + $itemsCount = $( '.displaying-num' ), columnCount = $form.find( 'thead th:not(.hidden), thead td' ).length, pluginDeletedRow = wp.template( 'item-deleted-row' ), /** @@ -970,7 +980,8 @@ * * @type {Object} */ - plugins = settings.plugins; + plugins = settings.plugins, + remainingCount; // Add a success message after deleting a plugin. if ( ! $pluginRow.hasClass( 'plugin-update-tr' ) ) { @@ -1050,6 +1061,17 @@ $form.find( '#the-list' ).append( '