Changeset 13540
- Timestamp:
- 04/16/2024 06:26:45 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
r13509 r13540 82 82 add_filter( 'bbp_get_topic_title', array( $this, 'feed_append_rating' ), 10, 2 ); 83 83 } 84 85 // Clear the review/ratings caches upon archive. 86 add_action( 'wporg_bbp_archived_topic', array( $this, 'wporg_bbp_archived_topic' ) ); 84 87 } 85 88 … … 593 596 return $title; 594 597 } 598 599 /** 600 * Clear the rating caches on topic archive. 601 */ 602 public function wporg_bbp_archived_topic( $post_id ) { 603 // Clear the rating caches. 604 \WPORG_Ratings::clear_cache( 605 $post_id, 606 $this->compat, 607 $this->slug, 608 bbp_get_topic_author_id( $post_id ) 609 ); 610 } 595 611 }
Note: See TracChangeset
for help on using the changeset viewer.