Skip to content

Commit 9bcc4eb

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57696 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4a3240e commit 9bcc4eb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/js/_enqueues/wp/updates.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@
32603260
$message.text( message.text );
32613261
}
32623262

3263-
if ( 'undefined' === typeof message.action || 'undefined' === typeof message.data.slug ) {
3263+
if ( 'undefined' === typeof message.action ) {
32643264
return;
32653265
}
32663266

@@ -3274,6 +3274,10 @@
32743274

32753275
case 'install-plugin':
32763276
case 'update-plugin':
3277+
if ( 'undefined' === typeof message.data || 'undefined' === typeof message.data.slug ) {
3278+
return;
3279+
}
3280+
32773281
message.data = wp.updates._addCallbacks( message.data, message.action );
32783282

32793283
wp.updates.queue.push( message );

0 commit comments

Comments
 (0)