diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index ef2dee786c..3d385beb78 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -339,25 +339,6 @@ themes.view.Details = wp.Backbone.View.extend({ this.trigger( 'theme:collapse' ); }, - // Setups an image gallery using the theme screenshots supplied by a theme - screenshotGallery: function() { - var screenshots = $( '#theme-screenshots' ), - current, img; - - screenshots.find( 'div.first' ).next().addClass( 'selected' ); - - // Clicking on a screenshot thumbnail drops it - // at the top of the stack in a larger size - screenshots.on( 'click', 'div.thumb', function() { - current = $( this ); - img = $( this ).find( 'img' ).clone(); - - current.siblings( '.first' ).html( img ); - current.siblings( '.selected' ).removeClass( 'selected' ); - current.addClass( 'selected' ); - }); - }, - // Confirmation dialoge for deleting a theme deleteTheme: function() { return confirm( themes.data.settings.confirmDelete ); @@ -524,8 +505,6 @@ themes.view.Themes = wp.Backbone.View.extend({ this.overlay.render(); this.$el.append( this.overlay.el ); - this.overlay.screenshotGallery(); - // Bind to theme:next and theme:previous // triggered by the arrow keys // @@ -534,13 +513,11 @@ themes.view.Themes = wp.Backbone.View.extend({ this.listenTo( this.overlay, 'theme:next', function() { // Renders the next theme on the overlay self.next( [ self.model.cid ] ); - self.overlay.screenshotGallery(); }) .listenTo( this.overlay, 'theme:previous', function() { // Renders the previous theme on the overlay self.previous( [ self.model.cid ] ); - self.overlay.screenshotGallery(); }); }, diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index fa532548e6..27c5eb05d2 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -311,14 +311,9 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
<# if ( data.screenshot[0] ) { #> -
- <# if ( _.size( data.screenshot ) > 1 ) { - _.each ( data.screenshot, function( image ) { - #>
<# - }); - } #> +
<# } else { #> -
+
<# } #>