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:
parent
82622db77e
commit
af63ca6803
|
@ -2602,7 +2602,7 @@
|
|||
return [ setting, value ];
|
||||
}).compact().object().value();
|
||||
|
||||
if ( changed )
|
||||
if ( ! _.isEmpty( changed ) )
|
||||
model.save( changed );
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue