mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Theme Installer: Fix displaying of errors.
props SergeyBiryukov. fixes #27640. Built from https://develop.svn.wordpress.org/trunk@27958 git-svn-id: http://core.svn.wordpress.org/trunk@27788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a177d8bf18
commit
e36c1cbf9e
@ -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( '<div class="error"><p>' + l10n.error + '</p></div>' );
|
||||
$( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p></div>' );
|
||||
});
|
||||
|
||||
// Create a new collection with the proper theme data
|
||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user