[wp-trac] [WordPress Trac] #64223: Undefined variable $comments_count

WordPress Trac noreply at wordpress.org
Mon Nov 10 20:37:36 UTC 2025


#64223: Undefined variable $comments_count
--------------------------+--------------------------
 Reporter:  zagna         |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.9
Component:  Comments      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 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/64223#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list