Make WordPress Core


Ignore:
Timestamp:
10/14/2016 01:32:29 PM (8 years ago)
Author:
swissspidy
Message:

Themes: Do not show an update button if there's no update package.

This updates the list view to match the existing behaviour in the single theme modal.

Props tristangemus for initial patch.
Fixes #37774.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r38705 r38788  
    573573            'active'       => $slug === $current_theme,
    574574            'hasUpdate'    => isset( $updates[ $slug ] ),
     575            'hasPackage'   => isset( $updates[ $slug ] ) && ! empty( $updates[ $slug ][ 'package' ] ),
    575576            'update'       => get_theme_update_available( $theme ),
    576577            'actions'      => array(
Note: See TracChangeset for help on using the changeset viewer.