From e2aa4378c3e935002a36276ffd7410491b62ef7e Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 18 Nov 2024 15:30:56 +0100 Subject: [PATCH] v 8.0.2 - Fix multilingual getter. --- wpuoptions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpuoptions.php b/wpuoptions.php index 6143f14..db1ece0 100644 --- a/wpuoptions.php +++ b/wpuoptions.php @@ -4,7 +4,7 @@ Plugin Name: WPU Options Plugin URI: https://github.com/WordPressUtilities/wpuoptions Update URI: https://github.com/WordPressUtilities/wpuoptions -Version: 8.0.1 +Version: 8.0.2 Description: Friendly interface for website options Author: Darklg Author URI: https://darklg.me/ @@ -29,7 +29,7 @@ class WPUOptions { private $main_url; private $options = array( 'plugin_name' => 'WPU Options', - 'plugin_version' => '8.0.1', + 'plugin_version' => '8.0.2', 'plugin_userlevel' => 'manage_categories', 'plugin_menutype' => 'admin.php', 'plugin_pageslug' => 'wpuoptions-settings' @@ -1371,7 +1371,7 @@ function wputh_l18n_get_option($name, $lang = false) { if ($lang !== false) { $option_l18n = get_option($lang . '___' . $name); - if (!empty($option_l18n)) { + if ($option_l18n || $option_l18n === '') { $option = $option_l18n; } }