diff --git src/includes/replies/functions.php src/includes/replies/functions.php
index bb66f52..7d0bf83 100644
|
|
function bbp_update_reply_walker( $reply_id, $last_active_time = '', $forum_id = |
988 | 988 | // Setup ancestors array to walk up |
989 | 989 | $ancestors = array_values( array_unique( array_merge( array( $topic_id, $forum_id ), (array) get_post_ancestors( $topic_id ) ) ) ); |
990 | 990 | |
| 991 | /** |
| 992 | * Filters the list of forum items to be processed when a reply is posted. |
| 993 | * |
| 994 | * @since 2.6.0 |
| 995 | * |
| 996 | * @param array $ancestors Array of post IDs that will be processed. |
| 997 | * @param int $reply_id ID of the reply being posted. |
| 998 | * @param string $last_active_time Last active time. |
| 999 | * @param int $forum_id The ID of the forum whose counts should be updated. |
| 1000 | * @param int $topic_id The ID of the topic whose counts should be updated. |
| 1001 | * @param bool $refresh Whether to reset all passed parameters. |
| 1002 | */ |
| 1003 | $ancestors = apply_filters( 'bbp_update_reply_walker_ancestors', $ancestors, $reply_id, $last_active_time, $forum_id, $topic_id, $refresh ); |
| 1004 | |
991 | 1005 | // If we want a full refresh, unset any of the possibly passed variables |
992 | 1006 | if ( true === $refresh ) { |
993 | 1007 | $forum_id = $topic_id = $reply_id = $active_id = $last_active_time = 0; |