WordPress.org

Make WordPress Core

Changeset 27958


Ignore:
Timestamp:
04/05/2014 07:25:20 PM (6 years ago)
Author:
nacin
Message:

Theme Installer: Fix displaying of errors.

props SergeyBiryukov.
fixes #27640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r27944 r27958  
    12821282
    12831283        this.listenTo( this.collection, 'query:fail', function() {
     1284            $( 'body' ).removeClass( 'loading-themes' );
    12841285            $( '.theme-browser' ).find( 'div.error' ).remove();
    1285             $( '.theme-browser' ).append( '<div class="error"><p>' + l10n.error + '</p></div>' );
     1286            $( '.theme-browser' ).find( 'div.themes' ).before( '<div class="error"><p>' + l10n.error + '</p></div>' );
    12861287        });
    12871288
Note: See TracChangeset for help on using the changeset viewer.