From fca0411b8d0334752d21508c3db87128ff7dba1c Mon Sep 17 00:00:00 2001 From: Gustavo Straube Date: Fri, 1 Feb 2019 09:19:00 -0200 Subject: [PATCH] Mark current language option as selected in the admin. Ref #38 --- multiple-domain/MultipleDomain.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/multiple-domain/MultipleDomain.php b/multiple-domain/MultipleDomain.php index 14c92e0..d0ee83a 100644 --- a/multiple-domain/MultipleDomain.php +++ b/multiple-domain/MultipleDomain.php @@ -20,7 +20,7 @@ class MultipleDomain * @var string * @since 0.3 */ - const VERSION = '0.8.5'; + const VERSION = '0.8.6'; /** * The plugin instance. @@ -652,7 +652,8 @@ private function getLangField($count, $lang = null) . '' . ''; foreach ($locales as $code => $name) { - $field .= ''; + $selected = $lang === $code ? 'selected' : ''; + $field .= ''; } $field .= '';