Make WordPress Core

Changeset 12478


Ignore:
Timestamp:
12/21/2009 11:55:23 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-admin/update-core.php

    r12453 r12478  
    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
Note: See TracChangeset for help on using the changeset viewer.