diff --git src/wp-admin/js/theme.js src/wp-admin/js/theme.js
index 1be6f18..924f299 100644
|
|
themes.view.Theme = wp.Backbone.View.extend({ |
610 | 610 | |
611 | 611 | updateTheme: function( event ) { |
612 | 612 | var _this = this; |
| 613 | |
| 614 | if ( ! this.model.get( 'hasPackage' ) ) { |
| 615 | return; |
| 616 | } |
| 617 | |
613 | 618 | event.preventDefault(); |
614 | 619 | |
615 | 620 | wp.updates.maybeRequestFilesystemCredentials( event ); |
diff --git src/wp-admin/themes.php src/wp-admin/themes.php
index 3be8fba..c332f59 100644
|
|
foreach ( $themes as $theme ) : |
252 | 252 | |
253 | 253 | <?php if ( $theme['hasUpdate'] ) : ?> |
254 | 254 | <div class="update-message notice inline notice-warning notice-alt"> |
| 255 | <?php if ( $theme['hasPackage'] ) : ?> |
255 | 256 | <p><?php _e( 'New version available. <button class="button-link" type="button">Update now</button>' ); ?></p> |
| 257 | <?php else : ?> |
| 258 | <p><?php _e( 'New version available.' ); ?></p> |
| 259 | <?php endif; ?> |
256 | 260 | </div> |
257 | 261 | <?php endif; ?> |
258 | 262 | |