Theme Customizer: Allow color control inputs to change the corresponding setting (use sync instead of link). fixes #20873.
git-svn-id: https://develop.svn.wordpress.org/trunk@21022 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3210a999eb
commit
f9bd63371b
|
@ -122,7 +122,7 @@
|
|||
this.farbtastic = $.farbtastic( this.container.find('.farbtastic-placeholder'), control.setting.set );
|
||||
|
||||
// Only pass through values that are valid hexes/empty.
|
||||
input.link( this.setting ).validate = function( to ) {
|
||||
input.sync( this.setting ).validate = function( to ) {
|
||||
return rhex.test( to ) ? to : null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue