[wp-trac] [WordPress Trac] #56499: count() used in the loop condition

WordPress Trac noreply at wordpress.org
Mon Nov 10 19:06:28 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):

 It appears that r60643 caused a regression whereby the `$comments_count`
 variable may not be defined when checked: #64223.

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


More information about the wp-trac mailing list