From f9bd63371be1cdd85974a78a46fc13375ed59db6 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Thu, 7 Jun 2012 17:25:00 +0000 Subject: [PATCH] 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 --- wp-admin/js/customize-controls.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/customize-controls.dev.js b/wp-admin/js/customize-controls.dev.js index fa47e459c2..a0e7dc51d7 100644 --- a/wp-admin/js/customize-controls.dev.js +++ b/wp-admin/js/customize-controls.dev.js @@ -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; };