Changeset 25778
- Timestamp:
- 10/14/2013 09:14:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r25772 r25778 741 741 $total_size += filesize( $working_dir_local . '/' . $file ); 742 742 743 // If we don't have enough free space, it isn't worth trying again 744 if ( $total_size >= disk_free_space( ABSPATH ) ) { 743 // If we don't have enough free space, it isn't worth trying again. 744 // Unlikely to be hit due to the check in unzip_file(). 745 $available_space = disk_free_space( ABSPATH ); 746 if ( $available_space && $total_size >= $available_space ) { 745 747 $result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ), $to ); 746 748 } else {
Note: See TracChangeset
for help on using the changeset viewer.