[buddypress-trac] [BuddyPress Trac] #8744: "Comments" title is displayed in BuddyPress pages when the core/comments block is used

buddypress-trac noreply at wordpress.org
Thu Sep 29 20:09:34 UTC 2022


#8744: "Comments" title is displayed in BuddyPress pages when the core/comments
block is used
--------------------------+-----------------------
 Reporter:  imath         |      Owner:  imath
     Type:  defect (bug)  |     Status:  assigned
 Priority:  high          |  Milestone:  10.5.0
Component:  Core          |    Version:  10.4.0
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 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` 🤔.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8744>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list