diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index ab6b0bee89..ac9512718c 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -1281,8 +1281,9 @@ themes.view.Installer = themes.view.Appearance.extend({ }); this.listenTo( this.collection, 'query:fail', function() { + $( 'body' ).removeClass( 'loading-themes' ); $( '.theme-browser' ).find( 'div.error' ).remove(); - $( '.theme-browser' ).append( '

' + l10n.error + '

' ); + $( '.theme-browser' ).find( 'div.themes' ).before( '

' + l10n.error + '

' ); }); // Create a new collection with the proper theme data