Make WordPress Core

Ticket #25963: 25963.4.diff

File 25963.4.diff, 902 bytes (added by adamsilverstein, 11 years ago)

cleaner fix for duplicate overlay back button issue

  • src/wp-admin/js/theme.js

     
    370370themes.view.Themes = wp.Backbone.View.extend({
    371371
    372372        className: 'themes',
     373        $overlay: $( 'div.theme-overlay' ),
    373374
    374375        // Number to keep track of scroll position
    375376        // while in theme-overlay mode
     
    497498                });
    498499
    499500                this.overlay.render();
    500                 this.$el.append( this.overlay.el );
     501                this.$overlay.html( this.overlay.el );
    501502
    502503                this.overlay.screenshotGallery();
    503504
  • src/wp-admin/themes.php

     
    180180?>
    181181
    182182<div class="theme-browser"></div>
     183<div class="theme-overlay"></div>
    183184
    184185<?php
    185186// List broken themes, if any.