[wp-trac] [WordPress Trac] #61468: DivisionByZero issue for comments on PHP8.0+
WordPress Trac
noreply at wordpress.org
Thu Jun 20 10:55:00 UTC 2024
#61468: DivisionByZero issue for comments on PHP8.0+
------------------------------------+------------------------------
Reporter: hideandgeek404 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: major | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Changes (by narenin):
* keywords: has-patch => has-patch dev-feedback
Comment:
Hi,
In my opinion we can handle the case where `$per_page` is 0 by adding a
check to ensure that it doesn't perform any division by zero or other
invalid operations. I have added patch that can handle this scenario.
https://github.com/WordPress/wordpress-develop/pull/6863
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61468#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list