From 3560eda1a4f8854c81944063e9d1f4dc3548c958 Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Sun, 29 Mar 2020 18:56:55 +0100 Subject: [PATCH 1/2] Change default to 100 items --- lib/class-wp-rest-menu-items-controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/class-wp-rest-menu-items-controller.php b/lib/class-wp-rest-menu-items-controller.php index 2a73360..dd90369 100644 --- a/lib/class-wp-rest-menu-items-controller.php +++ b/lib/class-wp-rest-menu-items-controller.php @@ -965,6 +965,8 @@ public function get_collection_params() { 'menu_order', ), ); + // Change dfault to 100 items. + $query_params['per_page']['default'] = 100; return $query_params; } From d7116e2a67402c2e81d3c1f6c55601dce259961d Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Sun, 29 Mar 2020 19:12:51 +0100 Subject: [PATCH 2/2] Fix lint error --- lib/class-wp-rest-menu-items-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-rest-menu-items-controller.php b/lib/class-wp-rest-menu-items-controller.php index dd90369..f4f9be0 100644 --- a/lib/class-wp-rest-menu-items-controller.php +++ b/lib/class-wp-rest-menu-items-controller.php @@ -965,7 +965,7 @@ public function get_collection_params() { 'menu_order', ), ); - // Change dfault to 100 items. + // Change dfault to 100 items. $query_params['per_page']['default'] = 100; return $query_params;