WordPress.org

Make WordPress Core

Ticket #11525: 11525.diff

File 11525.diff, 739 bytes (added by westi, 12 years ago)

Don't display plugin compatibility info if the new WordPress version is the same as the current one. For example for RC/Beta upgrades.

  • wp-admin/update-core.php

     
    153153        $form_action = 'update-core.php?action=do-plugin-upgrade';
    154154
    155155        $core_updates = get_core_updates();
    156         if ( !isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response )
     156        if ( !isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare( $core_updates[0]->current, $cur_wp_version, '=') )
    157157                $core_update_version = false;
    158158        else
    159159                $core_update_version = $core_updates[0]->current;