-
Notifications
You must be signed in to change notification settings - Fork 468
On ContentType union in nodeByUri returns incorrect isPostsPage #2514
Copy link
Copy link
Closed
Labels
status: in reviewAwaiting review before merging or closingAwaiting review before merging or closingtype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Description
Description
...on ContentType union in nodeByUri returns incorrect isPostsPage
Steps to reproduce
- Set your WordPress instance to have a static posts page
- Use the following query to query it by uri (in my case
/blog):query GetNodeByUri($uri: String!) { nodeByUri(uri: $uri) { ... on ContentType { isPostsPage } } }
- Notice
isPostsPagereturnsfalse
Screenshots
Additional context
No response
WPGraphQL Version
1.10.0
WordPress Version
6.0.2
PHP Version
7.4.1
Additional enviornment details
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have disabled ALL plugins except for WPGraphQL.
- Yes
- My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: in reviewAwaiting review before merging or closingAwaiting review before merging or closingtype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Projects
Status
✅ Done

