mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
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:
@@ -2602,7 +2602,7 @@
|
||||
return [ setting, value ];
|
||||
}).compact().object().value();
|
||||
|
||||
if ( changed )
|
||||
if ( ! _.isEmpty( changed ) )
|
||||
model.save( changed );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user