Skip to content

Commit

Permalink
Fix init for wp-graphiql
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed May 7, 2019
1 parent 83907ec commit ed6652c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wp-graphql-polylang.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ function is_graphql_request()
return true;
}

// Used wp-graphiql
if ('/index.php?graphql' == $_SERVER['REQUEST_URI']) {
return true;
}

return false;
}
}
Expand Down

0 comments on commit ed6652c

Please sign in to comment.