Ticket #25771: 25771.diff
| File 25771.diff, 1.4 KB (added by , 13 years ago) |
|---|
-
src/wp-admin/includes/update-core.php
697 697 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 ] ) ) 702 705 $checksums = $checksums[ $wp_version ]; // Compat code for 3.7-beta2 … … 706 709 continue; 707 710 if ( ! file_exists( ABSPATH . $file ) ) 708 711 continue; 712 if ( ! file_exists( $working_dir_local . $file ) ) 713 continue; 709 714 if ( md5_file( ABSPATH . $file ) === $checksum ) 710 715 $skip[] = $file; 711 716 else … … 765 770 // Some files didn't copy properly 766 771 if ( ! empty( $failed ) ) { 767 772 $total_size = 0; 768 // Find the local version of the working directory769 $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro;770 773 foreach ( $failed as $file ) { 771 774 if ( file_exists( $working_dir_local . $file ) ) 772 775 $total_size += filesize( $working_dir_local . $file );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)