From: Stephen Cameron Date: Mon, 13 Jun 2022 14:41:04 +0000 (+0200) Subject: Activate Polish in the language switcher. Done #4708 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3ab0ffd8c25d7c9a1af6992f306422e5e41b103b;p=ccv-wordpress.git Activate Polish in the language switcher. Done #4708 @0.25 --- diff --git a/wp-content/themes/CCV/app/View/Composers/Header.php b/wp-content/themes/CCV/app/View/Composers/Header.php index 976df9f..ff0e700 100644 --- a/wp-content/themes/CCV/app/View/Composers/Header.php +++ b/wp-content/themes/CCV/app/View/Composers/Header.php @@ -19,6 +19,10 @@ class Header extends Composer $languages = pll_the_languages(['raw' => true]); } + // // TEMPORARY: disable PL in language switcher for non-admin users + // if (!current_user_can('administrator') && isset($languages['pl'])) { + // unset($languages['pl']); + // } // To allow for better management of the URLs and titles when translating, // header buttons are stored in a separate menu location. Due to the design,