twentysixteen icon indicating copy to clipboard operation
twentysixteen copied to clipboard

remove BIND functionality for customizer in javascript

Open aptarmy opened this issue 8 years ago • 0 comments

We don't need to bind changed values in JavaScript to see changes instantly as we set postMessage for .site-title and .site-description to selective_refresh in the file inc/customizer.php on line 110 and 115

and the following line of code will return true every time it get called if ( isset( $wp_customize->selective_refresh ) ) { in customizer.php on line 109

the reason why it returns true is that this theme will only be available in WordPress 4.4-alpha or later according to this back-compatibility check in functions.php on line 31 if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {

aptarmy avatar Feb 13 '17 05:02 aptarmy