Skip to content

Commit aba65f9

Browse files
Fix issue when hide_default is true (#104)
1 parent 0b0f814 commit aba65f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-custom-permalinks-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ public function check_conflicts( $requested_url = '' ) {
958958
* Check if `hide_default` is `true` and the current language is not
959959
* the default. Otherwise remove the lang code from the URL.
960960
*/
961-
if ( 1 === $polylang_config['hide_default'] ) {
961+
if ( true === $polylang_config['hide_default'] || 1 === $polylang_config['hide_default'] ) {
962962
$current_language = '';
963963
if ( function_exists( 'pll_current_language' ) ) {
964964
// Get current language.

0 commit comments

Comments
 (0)