Skip to content

Commit

Permalink
fixes #1477
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jul 25, 2017
1 parent 99ffbdb commit aeaa8cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/reset/set-setting-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ if ( _.isUndefined( window.kirkiSetSettingValue ) ) {
*/
setValue: function( setting, value, timeout ) {
timeout = ( _.isUndefined( timeout ) ) ? 100 : parseInt( timeout, 10 );
wp.customize.instance( setting ).set({});
if ( ! _.isString( value ) ) {
wp.customize.instance( setting ).set({});
}
setTimeout( function() {
wp.customize.instance( setting ).set( value );
}, timeout );
Expand Down

0 comments on commit aeaa8cd

Please sign in to comment.