Ticket #3442: 3442.patch
File 3442.patch, 1.3 KB (added by , 6 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
374 374 $posts_per_page = 200; 375 375 } 376 376 377 // ES API does not allow fetching past the 10,000th post378 $page = min( $page, floor( 9 999/ $posts_per_page ) );377 // ES API does not allow fetching past the 9,000th post 378 $page = min( $page, floor( 9000 / $posts_per_page ) ); 379 379 380 380 $date_cutoff = strftime( '%Y-%m-%d', strtotime( '-8 years' ) ); 381 381 $date_today = strftime( '%Y-%m-%d' ); … … 443 443 } 444 444 445 445 // Total number of results for paging purposes 446 $this->found_posts = min( $this->search_result['results']['total'], 9 999 ); // The Jetpack search API errors out if we try to request past 10k446 $this->found_posts = min( $this->search_result['results']['total'], 9000 ); // The Jetpack search API errors out if we try to request past 9k 447 447 448 448 // Don't select anything, posts are inflated by Jetpack_SearchResult_Posts_Iterator 449 449 // in The Loop, to allow for multi site search