mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
e86c1971d4
commit
601999951c
@ -3260,7 +3260,7 @@
|
|||||||
$message.text( message.text );
|
$message.text( message.text );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'undefined' === typeof message.action || 'undefined' === typeof message.data.slug ) {
|
if ( 'undefined' === typeof message.action ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3274,6 +3274,10 @@
|
|||||||
|
|
||||||
case 'install-plugin':
|
case 'install-plugin':
|
||||||
case 'update-plugin':
|
case 'update-plugin':
|
||||||
|
if ( 'undefined' === typeof message.data || 'undefined' === typeof message.data.slug ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
message.data = wp.updates._addCallbacks( message.data, message.action );
|
message.data = wp.updates._addCallbacks( message.data, message.action );
|
||||||
|
|
||||||
wp.updates.queue.push( message );
|
wp.updates.queue.push( message );
|
||||||
|
2
wp-admin/js/updates.min.js
vendored
2
wp-admin/js/updates.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user