Skip to content

Commit

Permalink
Change default to 100 menu items in the REST API. (#21243)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey authored May 14, 2021
1 parent 5dec957 commit 818018d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/class-wp-rest-menu-items-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,8 @@ public function get_collection_params() {
'menu_order',
),
);
// Change default to 100 items.
$query_params['per_page']['default'] = 100;

return $query_params;
}
Expand Down

0 comments on commit 818018d

Please sign in to comment.