WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/20/2017 08:56:04 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Support Forums: Don't update reply counts when arching or unarchiving a pending or spam post, as the number of hidden replies does not change in that case.

See #1971, #2171.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php

    r5695 r5710  
    114114    /**
    115115     * Update the necessary meta data when editing a topic created before
    116      * 2017-07-17, as those topics can have potentially inaccurate data.
     116     * 2017-07-21, as those topics can have potentially inaccurate data.
    117117     *
    118118     * @see https://meta.trac.wordpress.org/ticket/1971
     
    122122     */
    123123    function update_old_topic_meta( $topic_id ) {
    124         // Only run on topics older than 2017-07-17.
    125         if ( get_post_field( 'post_date', $topic_id ) >= '2017-07-17' ) {
     124        // Only run on topics older than 2017-07-21.
     125        if ( get_post_field( 'post_date', $topic_id ) >= '2017-07-21' ) {
    126126            return;
    127127        }
Note: See TracChangeset for help on using the changeset viewer.