WordPress.org

Make WordPress Core

Ticket #21685: 21685.2.diff

File 21685.2.diff, 696 bytes (added by DrewAPicture, 3 years ago)

condition checked twice

  • wp-content/themes/twentytwelve/js/theme-customizer.js

     
    2121        // Hook into background color change and adjust body class value as needed. 
    2222        wp.customize( 'background_color', function( value ) { 
    2323                value.bind( function( to ) { 
    24                         if ( '#ffffff' == to || '#fff' == to || '' == to ) 
     24                        if ( '#ffffff' == to || '#fff' == to ) 
    2525                                $( 'body' ).addClass( 'custom-background-white' ); 
    2626                        else if ( '' == to ) 
    2727                                $( 'body' ).addClass( 'custom-background-empty' );