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

git-svn-id: https://develop.svn.wordpress.org/trunk@22892 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-28 04:41:24 +00:00
parent 82622db77e
commit af63ca6803
1 changed files with 1 additions and 1 deletions

View File

@ -2602,7 +2602,7 @@
return [ setting, value ];
}).compact().object().value();
if ( changed )
if ( ! _.isEmpty( changed ) )
model.save( changed );
},