Changeset 25801 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 10/15/2013 11:02:28 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-wp-upgrader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r25787 r25801 1252 1252 $wp_dir = trailingslashit($wp_filesystem->abspath()); 1253 1253 1254 // Pre-cache the checksums for the versions we care about1255 get_core_checksums( array( $wp_version, $current->version ) );1256 1257 1254 $partial = true; 1258 1255 if ( $parsed_args['do_rollback'] ) … … 1385 1382 1386 1383 function check_files() { 1387 global $wp_version ;1388 1389 $checksums = get_core_checksums( $wp_version );1390 1391 if ( empty( $checksums[ $wp_version ] ) || ! is_array( $checksums[ $wp_version ]) )1384 global $wp_version, $wp_local_package; 1385 1386 $checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' ); 1387 1388 if ( ! is_array( $checksums ) ) 1392 1389 return false; 1393 1390 1394 foreach ( $checksums [ $wp_version ]as $file => $checksum ) {1391 foreach ( $checksums as $file => $checksum ) { 1395 1392 // Skip files which get updated 1396 1393 if ( 'wp-content' == substr( $file, 0, 10 ) )
Note: See TracChangeset
for help on using the changeset viewer.