Themes: After [38788], further improve the update button when there's no update package.

Prevents running shiny install when no package exists.


Fixes #37774.

git-svn-id: https://develop.svn.wordpress.org/trunk@38855 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler
2016-10-21 10:35:51 +00:00
parent f508d80a1b
commit bb4da6448f
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -252,7 +252,11 @@ foreach ( $themes as $theme ) :
<?php if ( $theme['hasUpdate'] ) : ?>
<div class="update-message notice inline notice-warning notice-alt">
<?php if ( $theme['hasPackage'] ) : ?>
<p><?php _e( 'New version available. <button class="button-link" type="button">Update now</button>' ); ?></p>
<?php else : ?>
<p><?php _e( 'New version available.' ); ?></p>
<?php endif; ?>
</div>
<?php endif; ?>