WordPress.org

Make WordPress Core

Ticket #17066: pop-found-rows.diff

File pop-found-rows.diff, 437 bytes (added by wonderboymusic, 6 years ago)
  • wp-includes/query.php

     
    27772777        function set_found_posts( $q, $limits ) {
    27782778                global $wpdb;
    27792779
     2780                if ( empty( $limits ) )                         
     2781                        $this->found_posts = count( $this->posts );             
     2782               
    27802783                if ( $q['no_found_rows'] || empty( $limits ) )
    27812784                        return;
    27822785