Changeset 18227
- Timestamp:
- 06/10/2011 06:22:33 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r18225 r18227 868 868 869 869 function upgrade($current) { 870 global $wp_filesystem ;870 global $wp_filesystem, $wp_version; 871 871 872 872 $this->init(); … … 890 890 // Don't though if the constant is set to skip bundled items. 891 891 // 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 ) 893 893 $to_download = 'partial'; 894 894 elseif ( $current->packages->new_bundled && version_compare( $wp_version, $current->new_bundled, '<' ) -
trunk/wp-includes/update.php
r18226 r18227 92 92 $offer[ $offer_key ] = esc_html( $value ); 93 93 } 94 $offer = (object) array_intersect_key( $offer, array_fill_keys( array( 'response', 'download', 95 ' locale', 'packages', 'current', 'php_version', 'mysql_version', 'new_bundled' ), '' ) );94 $offer = (object) array_intersect_key( $offer, array_fill_keys( array( 'response', 'download', 'locale', 95 'packages', 'current', 'php_version', 'mysql_version', 'new_bundled', 'partial_version' ), '' ) ); 96 96 } 97 97
Note: See TracChangeset
for help on using the changeset viewer.