wp-graphql-polylang
wp-graphql-polylang copied to clipboard
Querying menuItems with location and language does not work with wp-graphql 1.26.0 and wp-graphql-polylang v0.6.0
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.