diff --git a/CHANGELOG.md b/CHANGELOG.md index e3f7f1081..6431deaa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [8.14.2] + +### Fixed + +- Added reCaptcha Enterprise key to the WPML non-translatable list. +- Fixed typo in `PUBLIC_NONE_TRANSLATABLE_NAMES_NAME` constant, associated methods, and keys. + ## [8.14.1] ### Updated @@ -1677,6 +1684,8 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a - Initial production release. +[8.14.2]: https://github.com/infinum/eightshift-forms/compare/8.14.1...8.14.2 +[8.14.1]: https://github.com/infinum/eightshift-forms/compare/8.14.0...8.14.1 [8.14.0]: https://github.com/infinum/eightshift-forms/compare/8.13.0...8.14.0 [8.13.0]: https://github.com/infinum/eightshift-forms/compare/8.12.1...8.13.0 [8.12.1]: https://github.com/infinum/eightshift-forms/compare/8.12.0...8.12.1 diff --git a/eightshift-forms.php b/eightshift-forms.php index e78bb2339..3506ca69d 100644 --- a/eightshift-forms.php +++ b/eightshift-forms.php @@ -6,7 +6,7 @@ * Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level. * Author: WordPress team @Infinum * Author URI: https://eightshift.com/ - * Version: 8.14.1 + * Version: 8.14.2 * Text Domain: eightshift-forms * * @package EightshiftForms diff --git a/src/Config/Config.php b/src/Config/Config.php index 676addc04..eb28ecfda 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -93,11 +93,11 @@ class Config public const PUBLIC_ACTIONS_NAME = 'actions'; /** - * Constant name for all public none translatable names set on the global variable. + * Constant name for all public non-translatable names set on the global variable. * * @var string */ - public const PUBLIC_NONE_TRANSLATABLE_NAMES_NAME = 'noneTranslatableNames'; + public const PUBLIC_NON_TRANSLATABLE_NAMES_NAME = 'nonTranslatableNames'; // ------------------------------------------------------------------ // BLOCKS diff --git a/src/Helpers/SettingsHelpers.php b/src/Helpers/SettingsHelpers.php index ac431248e..960be685d 100644 --- a/src/Helpers/SettingsHelpers.php +++ b/src/Helpers/SettingsHelpers.php @@ -306,7 +306,7 @@ public static function getOptionName(string $key): string { $suffix = ''; - $data = \EIGHTSHIFT_FORMS[Config::PUBLIC_NONE_TRANSLATABLE_NAMES_NAME] ?? []; // @phpstan-ignore-line + $data = \EIGHTSHIFT_FORMS[Config::PUBLIC_NON_TRANSLATABLE_NAMES_NAME] ?? []; // @phpstan-ignore-line if (!isset(\array_flip($data)[$key])) { $locale = I18nHelpers::getLocale(); diff --git a/src/Hooks/Filters.php b/src/Hooks/Filters.php index ec8b197b2..3230935b2 100644 --- a/src/Hooks/Filters.php +++ b/src/Hooks/Filters.php @@ -60,7 +60,7 @@ public static function getHooksData(): array return [ Config::PUBLIC_FILTERS_NAME => self::getPublicFilters(), Config::PUBLIC_ACTIONS_NAME => self::getPublicActions(), - Config::PUBLIC_NONE_TRANSLATABLE_NAMES_NAME => self::getSettingsNoneTranslatableNames(), + Config::PUBLIC_NON_TRANSLATABLE_NAMES_NAME => self::getSettingsNonTranslatableNames(), ]; } @@ -362,10 +362,11 @@ private static function getPublicActions(): array * * @return array */ - private static function getSettingsNoneTranslatableNames(): array + private static function getSettingsNonTranslatableNames(): array { return [ SettingsCaptcha::SETTINGS_CAPTCHA_USE_KEY, + SettingsCaptcha::SETTINGS_CAPTCHA_ENTERPRISE_KEY, SettingsCaptcha::SETTINGS_CAPTCHA_SITE_KEY, SettingsCaptcha::SETTINGS_CAPTCHA_SECRET_KEY, SettingsCaptcha::SETTINGS_CAPTCHA_PROJECT_ID_KEY,