[wp-trac] [WordPress Trac] #50221: Fix comment header for only one comment in Twenty Twenty theme

WordPress Trac noreply at wordpress.org
Thu May 21 17:14:40 UTC 2020


#50221: Fix comment header for only one comment in Twenty Twenty theme
--------------------------+-----------------------------
 Reporter:  ediamin       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  template      |
--------------------------+-----------------------------
 In `comments.php` of Twenty Twenty theme, `get_comments_number()` has been
 sanitized by `absint`. Therefore, the condition to show the comment header
 for only one comment in current code is wrong. This patch fixes the bug.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50221>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list