WordPress.org

Making WordPress.org

Ticket #2787: 2787.2.patch

File 2787.2.patch, 652 bytes (added by SergeyBiryukov, 7 months ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

     
    650650         * @param \WP_Query $wp_query The WordPress Query object. 
    651651         */ 
    652652        public function pre_get_posts( $wp_query ) { 
    653                 if ( is_admin() ) { 
     653                if ( is_admin() || ! $wp_query->is_main_query() ) { 
    654654                        return; 
    655655                } 
    656656