Make WordPress Core

Changeset 26765


Ignore:
Timestamp:
12/07/2013 01:58:23 AM (11 years ago)
Author:
nacin
Message:

Themes: Ensure the image returns a width before checking that it is less than 300px.

see #26459.

File:
1 edited

Legend:

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

    r26738 r26765  
    367367
    368368        // Width check
    369         if ( image.width <= 300 ) {
     369        if ( image.width && image.width <= 300 ) {
    370370            el.addClass( 'small-screenshot' );
    371371        }
Note: See TracChangeset for help on using the changeset viewer.