WordPress.org

Make WordPress Core

Changeset 25647


Ignore:
Timestamp:
09/29/13 22:59:46 (3 years ago)
Author:
dd32
Message:

Automatic Updates: Skip doing the sanity checking MD5 before deciding if we should use a partial build or not, This change means we always use a partial build for automatic updates. See #22704

File:
1 edited

Legend:

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

    r25635 r25647  
    12311231 
    12321232        $defaults = array( 
     1233            'pre_check_md5' => true, 
    12331234        ); 
    12341235        $parsed_args = wp_parse_args( $args, $defaults ); 
     
    12511252 
    12521253        $no_partial = false; 
    1253         if ( ! $this->check_files() ) 
     1254        if ( $parsed_args['pre_check_md5'] && ! $this->check_files() ) 
    12541255            $no_partial = true; 
    12551256 
     
    16261627        $upgrade_result = $upgrader->upgrade( $item, array( 
    16271628            'clear_update_cache' => false, 
     1629            'pre_check_md5'      => false, /* always use partial builds if possible for core updates */ 
    16281630        ) ); 
    16291631 
Note: See TracChangeset for help on using the changeset viewer.