Making WordPress.org

Ticket #3442: 3442.patch

File 3442.patch, 1.3 KB (added by ocean90, 6 years ago)
  • trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php

     
    374374                        $posts_per_page = 200;
    375375                }
    376376
    377                 // ES API does not allow fetching past the 10,000th post
    378                 $page = min( $page, floor( 9999 / $posts_per_page ) );
     377                // ES API does not allow fetching past the 9,000th post
     378                $page = min( $page, floor( 9000 / $posts_per_page ) );
    379379
    380380                $date_cutoff    = strftime( '%Y-%m-%d', strtotime( '-8 years' ) );
    381381                $date_today     = strftime( '%Y-%m-%d' );
     
    443443                }
    444444
    445445                // Total number of results for paging purposes
    446                 $this->found_posts = min( $this->search_result['results']['total'], 9999 ); // The Jetpack search API errors out if we try to request past 10k
     446                $this->found_posts = min( $this->search_result['results']['total'], 9000 ); // The Jetpack search API errors out if we try to request past 9k
    447447
    448448                // Don't select anything, posts are inflated by Jetpack_SearchResult_Posts_Iterator
    449449                // in The Loop, to allow for multi site search