[wp-trac] [WordPress Trac] #59116: Integer Casting Error in WP_Site_Health::get_test_available_updates_disk_space() wordpress

WordPress Trac noreply at wordpress.org
Tue Aug 15 21:12:28 UTC 2023


#59116: Integer Casting Error in
WP_Site_Health::get_test_available_updates_disk_space() wordpress
--------------------------+-----------------------------
 Reporter:  mathsgrinds   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.3
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 In WP_Site_Health::get_test_available_updates_disk_space() when one has
 too much free space the variable $available_space becomes negative and so
 the condition $available_space < 20 * MB_IN_BYTES is incorrectly triggered
 and reports on the Site Health page that there is not enough free space. A
 fix for now is to go to wp-admin/includes/class-wp-site-health.php and on
 line 1947 change ? (int) $available_space to ? $available_space

 See: https://wordpress.org/support/topic/available-disk-space-is-
 critically-low-less-than-20-mb-available-proceed-with/#post-16975478

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59116>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list