Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eightshift-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/SettingsHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 3 additions & 2 deletions src/Hooks/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
}

Expand Down Expand Up @@ -362,10 +362,11 @@ private static function getPublicActions(): array
*
* @return array<int, string>
*/
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,
Expand Down
Loading