Make WordPress Core

Ticket #38993: 38993.diff

File 38993.diff, 802 bytes (added by sstoqnov, 9 years ago)
  • src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js

     
    5656                                });
    5757                                $( 'body' ).addClass( 'title-tagline-hidden' );
    5858                        } else {
     59                               
     60                                // Check if the color has been removed and revert to default element color
     61                                if ( !to.length ) {
     62                                        to = 'inherit';
     63                                       
     64                                        // Check if header has custom image and apply appropriate styles
     65                                        if ( $('.has-header-image').length ) {
     66                                                to = '#fff';
     67                                        }
     68                                }
    5969                                $( '.site-title, .site-description' ).css({
    6070                                        clip: 'auto',
    6171                                        position: 'relative'