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

git-svn-id: http://core.svn.wordpress.org/trunk@22892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-28 04:41:24 +00:00
parent 09d59a0255
commit bffb901334
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 );
},