[wp-trac] [WordPress Trac] #61468: DivisionByZero issue for comments on PHP8.0+
WordPress Trac
noreply at wordpress.org
Thu Apr 3 13:50:32 UTC 2025
#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:
Severity: major | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Comment (by Presskopp):
I think the patch provided by @narenin is exactly what we need to solve
this issue. In case of being 0 the division will be skipped and the value
$comment_args['offset'] will be directly set to 0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61468#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list