mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user