Upgrade/Install: Only show auto-update for themes that support the feature.

Similar to the changes for plugins in [48669], let's only show the UI for themes when updates are supported for that theme.

See #50280.
Props dd32.


git-svn-id: https://develop.svn.wordpress.org/trunk@48688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock
2020-07-29 19:59:30 +00:00
parent a4927249a8
commit 20ac5dd62d
4 changed files with 55 additions and 12 deletions

View File

@@ -621,6 +621,7 @@ function wp_update_themes( $extra_stats = array() ) {
if ( is_array( $response ) ) {
$new_update->response = $response['themes'];
$new_update->no_update = $response['no_update'];
$new_update->translations = $response['translations'];
}