- Timestamp:
- 08/23/2023 01:29:51 PM (14 months ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-admin/includes/class-wp-site-health.php
r56342 r56428 1944 1944 $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR . '/upgrade/' ) : false; 1945 1945 1946 $available_space = false !== $available_space1947 ? (int) $available_space1948 : 0;1949 1950 1946 $result = array( 1951 1947 'label' => __( 'Disk space available to safely perform updates' ), … … 1964 1960 ); 1965 1961 1966 if ( $available_space < 100 * MB_IN_BYTES) {1967 $result['description'] = __( ' Available disk space is low, less than 100 MB available.' );1962 if ( false === $available_space ) { 1963 $result['description'] = __( 'Could not determine available disk space for updates.' ); 1968 1964 $result['status'] = 'recommended'; 1969 } 1970 1971 if ( $available_space < 20 * MB_IN_BYTES ) { 1965 } elseif ( $available_space < 20 * MB_IN_BYTES ) { 1972 1966 $result['description'] = __( 'Available disk space is critically low, less than 20 MB available. Proceed with caution, updates may fail.' ); 1973 1967 $result['status'] = 'critical'; 1974 } 1975 1976 if ( ! $available_space ) { 1977 $result['description'] = __( 'Could not determine available disk space for updates.' ); 1968 } elseif ( $available_space < 100 * MB_IN_BYTES ) { 1969 $result['description'] = __( 'Available disk space is low, less than 100 MB available.' ); 1978 1970 $result['status'] = 'recommended'; 1979 1971 }
Note: See TracChangeset
for help on using the changeset viewer.