Changeset 52585
- Timestamp:
- 01/17/2022 11:39:35 AM (3 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r52425 r52585 1662 1662 */ 1663 1663 if ( wp_doing_cron() ) { 1664 $available_space = @disk_free_space( WP_CONTENT_DIR );1664 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false; 1665 1665 1666 1666 if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) { … … 1803 1803 */ 1804 1804 if ( wp_doing_cron() ) { 1805 $available_space = @disk_free_space( WP_CONTENT_DIR );1805 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false; 1806 1806 1807 1807 if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space ) { -
trunk/src/wp-admin/includes/update-core.php
r52199 r52585 1243 1243 // If we don't have enough free space, it isn't worth trying again. 1244 1244 // Unlikely to be hit due to the check in unzip_file(). 1245 $available_space = @disk_free_space( ABSPATH );1245 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false; 1246 1246 1247 1247 if ( $available_space && $total_size >= $available_space ) {
Note: See TracChangeset
for help on using the changeset viewer.