WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#50221 closed defect (bug) (duplicate)

Fix comment header for only one comment in Twenty Twenty theme

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

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 3 months ago.

Download all attachments as: .zip

Change History (3)

@ediamin
3 months ago

#1 @johnbillion
3 months ago

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

#2 @SergeyBiryukov
3 months 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.