Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function pll_translation_url_filter() - "Hide URL language information for default language" #28

Open
nickeforsberg opened this issue Sep 9, 2015 · 1 comment

Comments

@nickeforsberg
Copy link

Row 344 fix for is_category()

if( $polylang->options['force_lang'] == 1 && $lang == pll_default_language() ){
return home_url('/'.$translated_term->slug);
} else {
return home_url('/'.$lang.'/'.$translated_term->slug);
}

@nickeforsberg
Copy link
Author

Sorry! Use this.

if( $polylang->options['hide_default'] && $lang == pll_default_language() ){
return home_url('/'.$translated_term->slug);
} else {
return home_url('/'.$lang.'/'.$translated_term->slug);
}

chesio added a commit to chesio/wp-polylang-translate-rewrite-slugs that referenced this issue Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant