WordPress.org

Making WordPress.org

Changeset 8184


Ignore:
Timestamp:
02/03/2019 11:21:49 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Support Forums: Lengthen the wait period before adding noindex tag for old topics from 1 to 3 years.

Props joostdevalk.
Fixes #4027.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-archive/wporg-bbp-topic-archive.php

    r8044 r8184  
    4343        &&
    4444            (
    45                 // Thread last modified is over a year old
    46                 ( time() - get_post_time( 'U', true, $post ) > YEAR_IN_SECONDS )
     45                // Thread last modified is over 3 years old
     46                ( time() - get_post_time( 'U', true, bbp_get_topic_last_active_id( $post->ID ) ) > 3 * YEAR_IN_SECONDS )
    4747            ||
    4848                // Closed thread with no replies
Note: See TracChangeset for help on using the changeset viewer.