// Remove deleted plugins from the plugin updates list.
$current =
get_site_transient( 'update_plugins'
);
if ( $current ) { // Don't remove the plugins that weren't deleted.
$deleted =
array_diff( $plugins,
$errors );
foreach ( $deleted as $plugin_file ) { unset( $current->response
[ $plugin_file ] );
} set_site_transient( 'update_plugins',
$current );
} if ( !
empty( $errors ) ) { if ( 1 ===
count( $errors ) ) { /* translators: %s: Plugin filename. */
$message =
__( 'Could not fully remove the plugin %s.'
);
} else { /* translators: %s: Comma-separated list of plugin filenames. */
$message =
__( 'Could not fully remove the plugins %s.'
);
}