Making WordPress.org


Ignore:
Timestamp:
07/07/2017 05:38:42 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Add rewrite rules and parse query arguments for user's "Active Topics" and "Topics Replied To" views.

Move user's "Reviews Written" view handling to Users class.

See #2470.

File:
1 edited

Legend:

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

    r5162 r5625  
    199199                    add_filter( 'posts_where', array( $this, 'posts_in_last_year' ) );
    200200                }
     201                return $r;
     202            }
     203
     204            // Only look at the last year of topics for user's "Active Topics" view.
     205            if ( get_query_var( 'wporg_single_user_active_topics' ) ) {
     206                add_filter( 'posts_where', array( $this, 'posts_in_last_year' ) );
    201207                return $r;
    202208            }
Note: See TracChangeset for help on using the changeset viewer.