Skip to content

Commit

Permalink
reduce limit in pre-query loop block vars function
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 3, 2025
1 parent 26e9c11 commit 7a52721
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/class-query-loop-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ public function pre_render_block($prerender, array $block, $parent)
public function query_loop_block_query_vars($vars)
{
// TODO: Add UI for specifying number of days
// TODO: Performance
$post_ids = get_most_viewed_post_ids([
'post_type' => $vars['post_type'],
'number' => 1000, // to support blocks with pagination
'number' => 100, // to support blocks with pagination
'days' => 30,
]);

Expand Down

0 comments on commit 7a52721

Please sign in to comment.