Make WordPress Core

Ticket #59116: 59116.diff

File 59116.diff, 591 bytes (added by Presskopp, 10 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

     
    19441944                $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR . '/upgrade/' ) : false;
    19451945
    19461946                $available_space = false !== $available_space
    1947                         ? (int) $available_space
     1947                        ? ($available_space > PHP_INT_MAX ? PHP_INT_MAX : (int) $available_space)
    19481948                        : 0;
    19491949
    19501950                $result = array(