]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentythirteen/js/theme-customizer.js
WordPress 4.1
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / js / theme-customizer.js
index 640db0fa24d211a7cb1c65b55674a493e20bd319..60721045cdc6d3cb7a9e01b3f8940b3038b84ef0 100644 (file)
@@ -1,7 +1,7 @@
 /**
- * Theme Customizer enhancements for a better user experience.
+ * Customizer enhancements for a better user experience.
  *
- * Contains handlers to make Theme Customizer preview reload changes asynchronously.
+ * Contains handlers to make Customizer preview reload changes asynchronously.
  * Things like site title and description changes.
  */
 
@@ -21,8 +21,9 @@
        wp.customize( 'header_textcolor', function( value ) {
                value.bind( function( to ) {
                        if ( 'blank' == to ) {
-                               if ( 'remove-header' == _wpCustomizeSettings.values.header_image )
+                               if ( 'remove-header' == wp.customize.instance( 'header_image' ).get() ) {
                                        $( '.home-link' ).css( 'min-height', '0' );
+                               }
                                $( '.site-title, .site-description' ).css( {
                                        'clip': 'rect(1px, 1px, 1px, 1px)',
                                        'position': 'absolute'