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

orderby param of include passed with no include value #121

Open
mogmarsh opened this issue Jan 15, 2024 · 1 comment
Open

orderby param of include passed with no include value #121

mogmarsh opened this issue Jan 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mogmarsh
Copy link
Collaborator

Description of the bug

On load, a block can send a request that looks like this: /wp-json/wp/v2/posts?context=edit&offset=0&orderby=include&per_page=1&type=announcement&include=&_locale=user
which returns

{
    "code": "rest_orderby_include_missing_include",
    "message": "You need to define an include parameter to order by include.",
    "data": {
        "status": 400
    }
}

Steps To Reproduce

Set up a Query block with a query that will return no posts.
The backfill request will be sent passing either null or commas (depending on the number of posts) as the include parameter.

Additional Information

No response

@mogmarsh mogmarsh added the bug Something isn't working label Jan 15, 2024
@mogmarsh
Copy link
Collaborator Author

after more research, it appears this happens when a term selected in the query is deleted. The term name is stored as well and will continue to show in the filter even if the term is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant