[wp-trac] [WordPress Trac] #56499: count() used in the loop condition
WordPress Trac
noreply at wordpress.org
Mon Nov 10 20:37:36 UTC 2025
#56499: count() used in the loop condition
---------------------------+-----------------------------------------------
Reporter: krunal265 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: lowest | Milestone: 6.9
Component: Comments | Version:
Severity: normal | Resolution: fixed
Keywords: needs-testing | Focuses: administration, coding-standards
has-patch |
---------------------------+-----------------------------------------------
Comment (by westonruter):
In [changeset:"61192" 61192]:
{{{
#!CommitTicketReference repository="" revision="61192"
Coding Standards: Initialize `$comments_count` before loop in case not set
during initial iteration.
Follow-up to [60643].
Props westonruter, mindctrl.
See #56499.
Fixes #64223.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56499#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list