Opened 3 years ago
Closed 3 years ago
#8744 closed defect (bug) (fixed)
"Comments" title is displayed in BuddyPress pages when the core/comments block is used
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 10.5.0 | Priority: | high |
| Severity: | normal | Version: | 10.4.0 |
| Component: | Core | Keywords: | has-patch |
| Cc: |
Description
Unlike Twenty Twenty-Two, Twenty Twenty-Three is using the core/comments block to display the wp:comment-template block template.
core/comments's render function is performing a comment count even if comments are closed requiring us to also filter the comments query to make sure this count is 0 on BuddyPress pages (and when the post_id is 0).
On a side note, it's kind of weird WordPress comments count is 1 when the post_id is 0 🤔.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 13332: