Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50221 closed defect (bug) (duplicate)

Fix comment header for only one comment in Twenty Twenty theme

Reported by: ediamin's profile ediamin Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3
Component: Bundled Theme Keywords: has-patch
Focuses: template Cc:


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.

Attachments (1)

50221.diff (623 bytes) - added by ediamin 4 years ago.

Download all attachments as: .zip

Change History (3)

4 years ago

#1 @johnbillion
4 years ago

  • Component changed from Themes to Bundled Theme
  • Version changed from trunk to 5.3

#2 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome back to WordPress Trac!

Thanks for the report, we're already tracking this issue in #49058.

Note: See TracTickets for help on using tickets.