Changeset 27882
- Timestamp:
- 04/01/2014 03:08:47 AM (11 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
-
branches/3.7/src/wp-admin/includes/update-core.php
r25916 r27882 698 698 // Check to see which files don't really need updating - only available for 3.7 and higher 699 699 if ( function_exists( 'get_core_checksums' ) ) { 700 // Find the local version of the working directory 701 $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro; 702 700 703 $checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' ); 701 704 if ( is_array( $checksums ) && isset( $checksums[ $wp_version ] ) ) … … 706 709 continue; 707 710 if ( ! file_exists( ABSPATH . $file ) ) 711 continue; 712 if ( ! file_exists( $working_dir_local . $file ) ) 708 713 continue; 709 714 if ( md5_file( ABSPATH . $file ) === $checksum ) … … 753 758 if ( isset( $checksums ) && is_array( $checksums ) ) { 754 759 foreach ( $checksums as $file => $checksum ) { 755 if ( 0 === strpos( $file, 'wp-content') )760 if ( 'wp-content' == substr( $file, 0, 10 ) ) 756 761 continue; 757 762 if ( ! file_exists( $working_dir_local . $file ) ) 763 continue; 758 764 if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) == $checksum ) 759 765 $skip[] = $file; … … 766 772 if ( ! empty( $failed ) ) { 767 773 $total_size = 0; 768 // Find the local version of the working directory769 $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro;770 774 foreach ( $failed as $file ) { 771 775 if ( file_exists( $working_dir_local . $file ) )
Note: See TracChangeset
for help on using the changeset viewer.