[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:04:53 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        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by imath):

 In [changeset:"13332" 13332]:
 {{{
 #!CommitTicketReference repository="" revision="13332"
 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.

 See #8744 (trunk)

 --Cette ligne, et les suivantes
 ci-dessous, seront ignorées--

 M    src/bp-core/bp-core-filters.php
 M    src/bp-core/bp-core-theme-compatibility.php
 }}}

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


More information about the buddypress-trac mailing list