diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index b5fc98042d..fdd5d80d82 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -572,6 +572,7 @@ function wp_prepare_themes_for_js( $themes = null ) { 'parent' => $parent, 'active' => $slug === $current_theme, 'hasUpdate' => isset( $updates[ $slug ] ), + 'hasPackage' => isset( $updates[ $slug ] ) && ! empty( $updates[ $slug ][ 'package' ] ), 'update' => get_theme_update_available( $theme ), 'actions' => array( 'activate' => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null, diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index fa1b25af5a..3be8fba9af 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -378,7 +378,11 @@ $can_install = current_user_can( 'install_themes' ); <# } #> <# if ( data.hasUpdate ) { #> -
+ <# if ( data.hasPackage ) { #> + + <# } else { #> + + <# } #> <# } #>