From ce1fc874613b7d1b60b9f0b2dd1c523a3aa9a8bf Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 10 Oct 2012 20:47:07 +0000 Subject: [PATCH] Twenty Twelve: remove a duplicate/misplaced condition in theme-customizer.js, props DrewAPicture. Closes #21685. git-svn-id: http://core.svn.wordpress.org/trunk@22168 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/js/theme-customizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwelve/js/theme-customizer.js b/wp-content/themes/twentytwelve/js/theme-customizer.js index cc27956d23..c1018b05cc 100644 --- a/wp-content/themes/twentytwelve/js/theme-customizer.js +++ b/wp-content/themes/twentytwelve/js/theme-customizer.js @@ -21,7 +21,7 @@ // Hook into background color change and adjust body class value as needed. wp.customize( 'background_color', function( value ) { value.bind( function( to ) { - if ( '#ffffff' == to || '#fff' == to || '' == to ) + if ( '#ffffff' == to || '#fff' == to ) $( 'body' ).addClass( 'custom-background-white' ); else if ( '' == to ) $( 'body' ).addClass( 'custom-background-empty' );