Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass context to postPicker query args #268

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Pass context to postPicker query args #268

merged 1 commit into from
Mar 13, 2024

Conversation

Sephsekla
Copy link
Contributor

This fixes a bug on certain WordPress versions:

When passing queryArgs to getEntityRecords for posts, the request will return no results unless the context argument is explicitly set.

Note that view should be the default for this request anyway, so the results returned should not change.

https://developer.wordpress.org/rest-api/reference/posts/#definition

@Sephsekla Sephsekla self-assigned this Mar 13, 2024
@Sephsekla Sephsekla requested review from tomjn and mattheu March 13, 2024 14:19
@Sephsekla Sephsekla merged commit 4c1833a into main Mar 13, 2024
2 checks passed
@Sephsekla Sephsekla deleted the postpicker-context branch March 13, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants