WordPress.org

Make WordPress Core

Ticket #26646: appearance-theme.patch

File appearance-theme.patch, 1008 bytes (added by 5um17, 7 years ago)

Patch for the bug

  • js/theme.js

     
    5252                // Render and append
    5353                this.view.render();
    5454                this.$el.empty().append( this.view.el ).addClass('rendered');
    55                 this.$el.append( '<br class="clear"/>' );
     55                this.view.$el.append( '<br class="clear"/>' );
    5656        },
    5757
    5858        // Search input and view
     
    491491
    492492                // 'Add new theme' element shown at the end of the grid
    493493                if ( themes.data.settings.canInstall ) {
    494                         this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></a></div>' );
     494                        this.theme.$el.after( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></a></div>' );
    495495                }
    496496
    497497                this.parent.page++;