From 273e0e8ecc7c6f237847b42d1f9a6712ee5fe80f Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 25 Oct 2017 01:13:09 +0000 Subject: [PATCH] Customize: Remove `theme_installing` notification when installation fails. Amends [41648]. Props celloexpressions. See #42184, #37661. git-svn-id: https://develop.svn.wordpress.org/trunk@42018 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index cf63c17e2b..b62c1de869 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -1193,7 +1193,7 @@ $button = $( '.theme-install[data-slug="' + response.slug + '"]' ); $card = $button.closest( '.theme' ).addClass( 'theme-install-failed' ).append( $message ); } - $( '.wp-full-overlay' ).removeClass( 'customize-loading' ); + wp.customize.notifications.remove( 'theme_installing' ); } else { if ( $document.find( 'body' ).hasClass( 'full-overlay-active' ) ) { $button = $( '.theme-install[data-slug="' + response.slug + '"]' );