[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
Fri Sep 30 20:22:23 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:  closed
 Priority:  high          |   Milestone:  10.5.0
Component:  Core          |     Version:  10.4.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13333" 13333]:
 {{{
 #!CommitTicketReference repository="" revision="13333"
 Avoid querying for comments when viewing a BuddyPress page in TT3

 The Twenty Twenty-Three block theme is using the `core/comments` block to
 display comments for WP Pages or Posts. After checking if comments are
 open, this block is doing an additional comment count query which wrongly
 returns the site's all comment count as BuddyPress pages ID is reset to
 `0`.

 In this case forcing comments to be closed is not enough, we also need to
 force the comment count to be 0.

 Fixes #8744 (branch 10.0)
 }}}

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


More information about the buddypress-trac mailing list