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

Issue with WP GraphQL Polylang plugin when querying menus #81

Open
dominikmietlaviewone opened this issue Mar 9, 2023 · 0 comments
Open

Comments

@dominikmietlaviewone
Copy link

I am using Polylang Version 3.3.1 and WP GraphQL Polylang Version 0.6.0 plugins on my WordPress website. While querying menus using the following code:

{
menus {
nodes {
slug
menuItems {
nodes {
uri
}
}
}
}
}

I encountered an error and no results were displayed. Upon investigating, I found that the issue is caused by an deprecated function in the MenuItem.php. The function "getArgs()" needs to be updated to "get_args()" to fix the issue.

Please update the WP GraphQL Polylang plugin to fix this issue. Thank you.

$args = $resolver->getArgs();

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