[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
Wed Aug 16 13:39:10 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        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by rajinsharwar):

 Proposal: Should we check if the $available_space is 0 or not, and then
 make it 0, so that the negative value isn't passed through the test?

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


More information about the wp-trac mailing list