Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#50221 closed defect (bug) (duplicate)

Fix comment header for only one comment in Twenty Twenty theme

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

Description

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 6 years ago.

Download all attachments as: .zip

Change History (3)

@ediamin
6 years ago

#1 @johnbillion
6 years ago

  • Component Themes → Bundled Theme
  • Version trunk → 5.3

#2 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → 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.