WordPress.org

Make WordPress Core

Changeset 22892


Ignore:
Timestamp:
11/28/12 04:41:24 (17 months ago)
Author:
nacin
Message:

Check if the object is empty, as objects are always truthy. props koopersmith. see #22593.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22889 r22892  
    26032603            }).compact().object().value(); 
    26042604 
    2605             if ( changed ) 
     2605            if ( ! _.isEmpty( changed ) ) 
    26062606                model.save( changed ); 
    26072607        }, 
Note: See TracChangeset for help on using the changeset viewer.