Changeset 25811
- Timestamp:
- 10/16/2013 03:19:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r25806 r25811 755 755 continue; 756 756 757 if ( md5_file( ABSPATH . $file ) == $checksum )757 if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) == $checksum ) 758 758 $skip[] = $file; 759 759 else … … 766 766 $total_size = 0; 767 767 // Find the local version of the working directory 768 $working_dir_local = str_replace( trailingslashit( $wp_filesystem->wp_content_dir() ), trailingslashit( WP_CONTENT_DIR ), $from . $distro ); 769 foreach ( $failed as $file ) 770 $total_size += filesize( $working_dir_local . '/' . $file ); 768 $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro; 769 foreach ( $failed as $file ) { 770 if ( file_exists( $working_dir_local . $file ) ) 771 $total_size += filesize( $working_dir_local . $file ); 772 } 771 773 772 774 // If we don't have enough free space, it isn't worth trying again.
Note: See TracChangeset
for help on using the changeset viewer.