Make WordPress Core


Ignore:
Timestamp:
07/30/2020 10:02:54 PM (5 years ago)
Author:
whyisjake
Message:

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.

This brings the changes from [48688] to the 5.5 branch.

See #50280.
Props dd32.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-includes/update.php

    r48344 r48698  
    622622    if ( is_array( $response ) ) {
    623623        $new_update->response     = $response['themes'];
     624        $new_update->no_update    = $response['no_update'];
    624625        $new_update->translations = $response['translations'];
    625626    }
Note: See TracChangeset for help on using the changeset viewer.