Make WordPress Core


Ignore:
Timestamp:
04/11/2022 04:49:29 AM (3 years ago)
Author:
peterwilsoncc
Message:

Plugins: Update item count when plugin deleted.

Update the item count, "N items", on the plugin list when a plugin is deleted. This matches the live updating of various other counts on the screen.

Props mitogh, costdev, azouamauriac, swissspidy, kebbet.
Fixes #55316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r53103 r53124  
    13411341        $scripts->set_translations( 'privacy-tools' );
    13421342
    1343         $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'common', 'jquery', 'wp-util', 'wp-a11y', 'wp-sanitize' ), false, 1 );
     1343        $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'common', 'jquery', 'wp-util', 'wp-a11y', 'wp-sanitize', 'wp-i18n' ), false, 1 );
    13441344        $scripts->set_translations( 'updates' );
    13451345        did_action( 'init' ) && $scripts->localize(
Note: See TracChangeset for help on using the changeset viewer.