Repository navigation
Add backfill date limit default and block setting - #458
Open
jacobschweitzer wants to merge 25 commits into
Open
jacobschweitzer wants to merge 25 commits into
jacobschweitzer wants to merge 25 commits into
Conversation
manewc
reviewed
May 1, 2026
| * | ||
| * @param int $backfill_days Days to limit backfill posts. 0 means no limit. | ||
| */ | ||
| $backfill_days = (int) apply_filters( 'wp_curate_backfill_days', $backfill_days ); |
There was a problem hiding this comment.
If we had logic leveraging this wp_curate_backfill_days, then this will effect ALL queries? For instance, this would then ignore the Backfill Date Limit in the <SelectControl> in components/QueryControls/index.tsx?
If this is the case, I feel like this may bring up create some UX confusion.
manewc
approved these changes
May 1, 2026
manewc
left a comment
There was a problem hiding this comment.
The code is solid, I just had a non-blocking clarification question for consideration.
🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a default backfill date limit of 30 days with a filter. Also adds a block setting with a select box dropdown for setting the limit to 30 days, 60 days, 90 days, 6 months, 1 year, and no limit.
Resolves #440