Upgrade/Install: Fix upgrade count decrement on Updates page.

Fixes a JavaScript error that caused the update count bubble not to decrement when updating a plugin.

Props nendeb55, swissspidy.
Fixes #60589.
Built from https://develop.svn.wordpress.org/trunk@57696


git-svn-id: http://core.svn.wordpress.org/trunk@57197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2024-02-22 17:58:08 +00:00
parent e86c1971d4
commit 601999951c
3 changed files with 7 additions and 3 deletions

View File

@ -3260,7 +3260,7 @@
$message.text( message.text );
}
if ( 'undefined' === typeof message.action || 'undefined' === typeof message.data.slug ) {
if ( 'undefined' === typeof message.action ) {
return;
}
@ -3274,6 +3274,10 @@
case 'install-plugin':
case 'update-plugin':
if ( 'undefined' === typeof message.data || 'undefined' === typeof message.data.slug ) {
return;
}
message.data = wp.updates._addCallbacks( message.data, message.action );
wp.updates.queue.push( message );

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-beta2-57695';
$wp_version = '6.5-beta2-57696';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.