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

Querying menuItems with location and language does not work with wp-graphql 1.26.0 and wp-graphql-polylang v0.6.0 #89

Open
judas-christ opened this issue May 14, 2024 · 0 comments

Comments

@judas-christ
Copy link

I accidentally updated wp-graphql from 1.25.0 to 1.26.0 and discovered that querying menuItems using location and language does not work anymore on v0.6.0. Downgrading to 1.25.0 works.

Reproduce by creating a site with a couple of languages and a menu. Open GraphiQL and run this query, where MAIN_MENU is the menu location and EN is the non-default language:

menuItems(where: { location: MAIN_MENU, language: EN }) {
  nodes {
    locations
  }
}

This will return a correct result in 1.25.0 but an incorrect one on 1.26.0.

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

No branches or pull requests

1 participant