Changeset 25831
- Timestamp:
- 10/17/2013 06:39:04 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r25806 r25831 623 623 * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. 624 624 */ 625 $available_space = disk_free_space( WP_CONTENT_DIR );625 $available_space = @disk_free_space( WP_CONTENT_DIR ); 626 626 if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) 627 627 return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); … … 723 723 * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. 724 724 */ 725 $available_space = disk_free_space( WP_CONTENT_DIR );725 $available_space = @disk_free_space( WP_CONTENT_DIR ); 726 726 if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) 727 727 return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); -
trunk/src/wp-admin/includes/update-core.php
r25811 r25831 774 774 // If we don't have enough free space, it isn't worth trying again. 775 775 // Unlikely to be hit due to the check in unzip_file(). 776 $available_space = disk_free_space( ABSPATH );776 $available_space = @disk_free_space( ABSPATH ); 777 777 if ( $available_space && $total_size >= $available_space ) { 778 778 $result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) );
Note: See TracChangeset
for help on using the changeset viewer.