diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php index 043be440a1..b21b24000e 100644 --- a/src/wp-content/themes/twentythirteen/functions.php +++ b/src/wp-content/themes/twentythirteen/functions.php @@ -547,6 +547,6 @@ add_action( 'customize_register', 'twentythirteen_customize_register' ); * @since Twenty Thirteen 1.0 */ function twentythirteen_customize_preview_js() { - wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130226', true ); + wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); } add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); diff --git a/src/wp-content/themes/twentythirteen/js/theme-customizer.js b/src/wp-content/themes/twentythirteen/js/theme-customizer.js index 0123d3a843..60721045cd 100644 --- a/src/wp-content/themes/twentythirteen/js/theme-customizer.js +++ b/src/wp-content/themes/twentythirteen/js/theme-customizer.js @@ -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' diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php index 38ea36ec74..0b6e180b2b 100644 --- a/src/wp-content/themes/twentytwelve/functions.php +++ b/src/wp-content/themes/twentytwelve/functions.php @@ -494,6 +494,6 @@ add_action( 'customize_register', 'twentytwelve_customize_register' ); * @since Twenty Twelve 1.0 */ function twentytwelve_customize_preview_js() { - wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130301', true ); + wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); } add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); diff --git a/src/wp-content/themes/twentytwelve/js/theme-customizer.js b/src/wp-content/themes/twentytwelve/js/theme-customizer.js index 9dc117f6c3..8bf094be54 100644 --- a/src/wp-content/themes/twentytwelve/js/theme-customizer.js +++ b/src/wp-content/themes/twentytwelve/js/theme-customizer.js @@ -53,12 +53,13 @@ value.bind( function( to ) { var body = $( 'body' ); - if ( '' != to ) + if ( '' !== to ) { body.removeClass( 'custom-background-empty custom-background-white' ); - else if ( 'rgb(255, 255, 255)' == body.css( 'background-color' ) ) + } else if ( 'rgb(255, 255, 255)' === body.css( 'background-color' ) ) { body.addClass( 'custom-background-white' ); - else if ( 'rgb(230, 230, 230)' == body.css( 'background-color' ) && '' == _wpCustomizeSettings.values.background_color ) + } else if ( 'rgb(230, 230, 230)' === body.css( 'background-color' ) && '' === wp.customize.instance( 'background_color' ).get() ) { body.addClass( 'custom-background-empty' ); + } } ); } ); } )( jQuery );