From bb5948e11ebb0a963f09a04943ecf77ae189a60b Mon Sep 17 00:00:00 2001
From: denis <denis@deniska>
Date: Feb 8, 2017 4:54:45 AM
Now "+X hidden" link include archived posts
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
index 7ffa2b5..28942be 100644
a
|
b
|
|
248 | 248 | ), true ); |
249 | 249 | if ( $post_id ) { |
250 | 250 | update_post_meta( $post->ID, self::ARCHIVED_META, $post->post_status ); |
| 251 | $topic_id = bbp_get_reply_topic_id( $post->ID ); |
| 252 | bbp_increase_topic_reply_count_hidden( $topic_id ); |
251 | 253 | return true; |
252 | 254 | } |
253 | 255 | } |
… |
… |
|
276 | 278 | ) ); |
277 | 279 | if ( $post_id ) { |
278 | 280 | delete_post_meta( $post->ID, self::ARCHIVED_META ); |
| 281 | $topic_id = bbp_get_reply_topic_id( $post->ID ); |
| 282 | bbp_decrease_topic_reply_count_hidden( $topic_id ); |
279 | 283 | return true; |
280 | 284 | } |
281 | 285 | } |