Skip to content

Commit

Permalink
Add a large limit for pattern results
Browse files Browse the repository at this point in the history
Later we might want to remove this or set it to something smaller, but for now we want to pre-load the set of ~15 core patterns.
  • Loading branch information
ryelle committed Apr 21, 2021
1 parent c41f48d commit 92e288f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-pattern-directory-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function get_items_permissions_check( $request ) { // phpcs:ignore Variab
* @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function get_items( $request ) {
$query_args = array();
$query_args = array( 'per_page' => 100 );
$category_id = $request['category'];
$keyword_id = $request['keyword'];
$search_term = $request['search'];
Expand Down

0 comments on commit 92e288f

Please sign in to comment.