Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Health: Correct the check for disk space available to safely per…
…form updates. If the available disk space exceeds the `PHP_INT_MAX` value, i.e. a 32-bit PHP version is in use with more than 2 GB free, the type casting to `(int)` could cause an overflow, and the Site Health test would then erroneously report that there is not enough free space. This commit removes the unnecessary type casting and uses the result from `disk_free_space()` directly. Includes optimizing the logic to skip further checks if the available disk space could not be determined. Follow-up to [55720]. Props mathsgrinds, Presskopp, rajinsharwar, SergeyBiryukov. Fixes #59116. git-svn-id: https://develop.svn.wordpress.org/trunk@56401 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information