Making WordPress.org

Changeset 9487


Ignore:
Timestamp:
02/11/2020 04:06:27 AM (5 years ago)
Author:
dd32
Message:

Support Forums: Exclude closed/locked pthreads from the no-replies view.

Fixes #3582.

File:
1 edited

Legend:

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

    r9469 r9487  
    689689
    690690    /**
    691      * Limits No Replies view to 21 days by default and hides resolved topics.
     691     * Limits No Replies view to 21 days by default and hides closed/resolved topics.
    692692     *
    693693     * @param array $args Array of query args for the view.
     
    713713            'compare' => '='
    714714        ) );
     715
     716        // Exclude closed/hidden/spam/etc topics.
     717        $args['post_status'] = 'publish';
    715718
    716719        return $args;
Note: See TracChangeset for help on using the changeset viewer.