You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The filter added to graphql_term_object_connection_query_args is unsetting $query['object_ids'] without checking the type that is being worked with. This means that if you want to limit connection terms to their object, you can't even if you set shouldOnlyIncludeConnectedItems.
To Reproduce
This query should only return 1 category on my side but it returns them all.
Describe the bug
The filter added to
graphql_term_object_connection_query_args
is unsetting$query['object_ids']
without checking the type that is being worked with. This means that if you want to limit connection terms to their object, you can't even if you setshouldOnlyIncludeConnectedItems
.To Reproduce
This query should only return 1 category on my side but it returns them all.
Expected behavior
The WooCommerce term connection should only unset "object_ids" on WooCommerce types and not effect other connections.
The text was updated successfully, but these errors were encountered: