Closed beherit closed 6 years ago
Would changing line 264
if ( is_admin() || ! function_exists( 'pll_current_language' ) || $disable ) {
to
if ( is_admin() || is_feed() || ! function_exists( 'pll_current_language' ) || $disable ) {
solve the issue?
Yes, thank You :)
But it might break slugs in feeds... please verify.
Slugs in feeds are still okey for me ;)
I have added a fix for this.
Otherwise the filter should have worked like this.
add_filter( 'polylang_slug_disable', function( $disable ) {
if ( is_feed() ) {
return true;
}
return $disable;
} );
Please take a look this issue:
https://wordpress.org/support/topic/this-is-not-a-valid-feed/
When I have enabled polylang-slug I have problem with "XML Sitemap & Google News feeds" and sitemap - I see there only pages from one language. When I furn off plugin OR comment 2 filers: polylang_slug_posts_where_filter and polylang_slug_posts_join_filter everything's start working. Could You add fix for it?
P.S. Return TRUE in filter polylang_slug_disable doesen't work at all - still must change page language to see taxonomy (categories and tags) in sitemap.