diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index a02cbd8f59..8089128cf8 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -366,7 +366,7 @@ themes.view.Details = wp.Backbone.View.extend({ image.src = screenshot.attr( 'src' ); // Width check - if ( image.width <= 300 ) { + if ( image.width && image.width <= 300 ) { el.addClass( 'small-screenshot' ); } }