WordPress.org

Making WordPress.org

Ticket #2171: 2171.patch

File 2171.patch, 1.2 KB (added by denisco, 10 months ago)
  • wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    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  
    248248                        ), true ); 
    249249                        if ( $post_id ) { 
    250250                                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 ); 
    251253                                return true; 
    252254                        } 
    253255                } 
     
    276278                        ) ); 
    277279                        if ( $post_id ) { 
    278280                                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 ); 
    279283                                return true; 
    280284                        } 
    281285                }