Ticket #27640: 27640.3.patch
File 27640.3.patch, 660 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/js/theme.js
1193 1193 }); 1194 1194 1195 1195 this.listenTo( this.collection, 'query:fail', function() { 1196 $( 'body' ).removeClass( 'loading-themes' ); 1196 1197 $( '.theme-browser' ).find( 'div.error' ).remove(); 1197 $( '.theme-browser' ). append( '<div class="error"><p>' + l10n.error + '</p></div>' );1198 $( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p></div>' ); 1198 1199 }); 1199 1200 1200 1201 // Create a new collection with the proper theme data