Make WordPress Core

Ticket #46997: 46997.diff

File 46997.diff, 1009 bytes (added by desrosj, 6 years ago)
  • src/wp-includes/customize/class-wp-customize-theme-control.php

     
    8989                        ?>
    9090                        </div>
    9191
    92                         <# if ( 'installed' === data.theme.type && data.theme.hasUpdate ) { #>
     92                        <# if ( 'installed' === data.theme.type && data.theme.hasUpdate && data.update ) { #>
    9393                                <div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
    9494                                        <p>
    9595                                                <?php
     
    9898                                                ?>
    9999                                        </p>
    100100                                </div>
     101                        <# } else if ( 'installed' === data.theme.type && data.theme.hasUpdate  ) { #>
     102                                <div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
     103                                        <p>
     104                                                <?php _e( 'New version available.' ); ?>
     105                                        </p>
     106                                </div>
    101107                        <# } #>
    102108
    103109                        <# if ( data.theme.active ) { #>