[wp-trac] [WordPress Trac] #49058: Twenty Twenty: Comments report

WordPress Trac noreply at wordpress.org
Fri Apr 24 13:18:19 UTC 2020


#49058: Twenty Twenty: Comments report
-------------------------------------+-------------------------------------
 Reporter:  Parvand                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:
Component:  Bundled Theme            |     Version:  5.3.2
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback        |     Focuses:  template, coding-
  needs-patch                        |  standards
-------------------------------------+-------------------------------------
Changes (by juliobox):

 * keywords:  reporter-feedback => reporter-feedback needs-patch
 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 Hey there
 The issue is still there, but here is the real bug :

 Line 26 : $comments_number = absint( get_comments_number() );
 Line 36 : } elseif ( '1' === $comments_number ) {

 This is why this if can't be triggered.
 The patch is : } elseif ( 1 === $comments_number ) {

 Have a good day

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


More information about the wp-trac mailing list