WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/11 06:22:33 (7 years ago)
Author:
nacin
Message:

Extra check for partial updates: Make sure the API response matches the current version of WP. see #10611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r18225 r18227  
    868868 
    869869    function upgrade($current) { 
    870         global $wp_filesystem; 
     870        global $wp_filesystem, $wp_version; 
    871871 
    872872        $this->init(); 
     
    890890        // Don't though if the constant is set to skip bundled items. 
    891891        // If the API returns a no_content zip, go with it. Finally, default to the full zip. 
    892         if ( $current->packages->partial && 'reinstall' != $current->response ) 
     892        if ( $current->packages->partial && 'reinstall' != $current->response && $wp_version == $current->partial_version ) 
    893893            $to_download = 'partial'; 
    894894        elseif ( $current->packages->new_bundled && version_compare( $wp_version, $current->new_bundled, '<' ) 
Note: See TracChangeset for help on using the changeset viewer.