mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-11 10:01:52 +01:00
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:
parent
09d59a0255
commit
bffb901334
@ -2602,7 +2602,7 @@
|
||||
return [ setting, value ];
|
||||
}).compact().object().value();
|
||||
|
||||
if ( changed )
|
||||
if ( ! _.isEmpty( changed ) )
|
||||
model.save( changed );
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user