grappler / polylang-slug

A unique post slug within the language in Polylang. This allows for a page to have same/identical slug in multiple languages.
268 stars 84 forks source link

Check if `$lang` is not false before setting the where clause #9

Closed swissspidy closed 9 years ago

swissspidy commented 9 years ago

Sounds like a bug in Polylang which isn't fully checked against in this plugin.

pll_current_language can return false. If that's the case, the where clause can't be properly generated in the polylang_slug_filter_queries function.

grappler commented 9 years ago

Thanks :+1: