[wp-trac] [WordPress Trac] #48093: get_comment_count() should return an integer for all counts of all statuses

WordPress Trac noreply at wordpress.org
Sat Mar 28 20:42:46 UTC 2020


#48093: get_comment_count() should return an integer for all counts of all statuses
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
                                                 |  johnbillion
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  Comments                             |     Version:  2.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing has-unit-tests needs-dev-note          |
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * owner:  (none) => johnbillion
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47526" 47526]:
 {{{
 #!CommitTicketReference repository="" revision="47526"
 Comments: Ensure all elements in the array returned by
 `get_comment_count()` are integers.

 Previously elements would be a mixture of strings and integers depending
 on their numeric value.

 Props progremzion, m.usama.masood

 Fixes #48093
 }}}

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


More information about the wp-trac mailing list