Opened 4 years ago
Closed 4 years ago
#8744 closed defect (bug) (fixed)
"Comments" title is displayed in BuddyPress pages when the core/comments block is used
| Reported by: | imath | Owned by: | imath |
|---|---|---|---|
| Priority: | high | Milestone: | 10.5.0 |
| Component: | Core | Version: | 10.4.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 13332: