valu-digital / wp-graphql-polylang

WPGraphQL Polylang Extension for WordPress
https://packagist.org/packages/valu/wp-graphql-polylang
GNU General Public License v2.0
124 stars 20 forks source link

Fix options page #93

Open PSMJonas opened 3 months ago

PSMJonas commented 3 months ago

The output of the content based on the selected language did not work because the typeattribute was not present:

$type = $source['type'] ?? null;
return $type === 'options_page';

$type is always null.

geck1942 commented 2 months ago

This DOES fix the issue! Nice call.- Beware in the commit, you've removed is_options_page but it is still called line 150