diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index b5fc98042d..fdd5d80d82 100644 --- a/wp-admin/includes/theme.php +++ b/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/wp-admin/themes.php b/wp-admin/themes.php index fa1b25af5a..3be8fba9af 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -378,7 +378,11 @@ $can_install = current_user_can( 'install_themes' ); <# } #> <# if ( data.hasUpdate ) { #> -
+ <# if ( data.hasPackage ) { #> + + <# } else { #> + + <# } #> <# } #> diff --git a/wp-includes/version.php b/wp-includes/version.php index 07f755c745..b03dfb30b7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38787'; +$wp_version = '4.7-alpha-38788'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.