From 09cb421b4db8f8740092731cd98e1f5b1f24f4c5 Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:34:49 -0700 Subject: [PATCH 1/2] Version 3.11.0 --- CHANGELOG.md | 7 ++++++- src/WpSettingsApi.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc42177..0d9994a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/). # UNRELEASED -## 4.0.0 - 2024-04-24 - Require PHP >= 8.1 +## 3.11.0 - 2024-04-24 +- Update admin CSS with a slight design change. +- Allow int values in Script/Style models version property. +- Prepare tests for PHP 8.3, and ready code for PHP 8.0 deprecation. +- Update wp-color-picker-alpha to v3.0.3. + ## 3.10.0 - 2023-11-10 - Add new Text Array field type. diff --git a/src/WpSettingsApi.php b/src/WpSettingsApi.php index d0fb984..f8cb950 100755 --- a/src/WpSettingsApi.php +++ b/src/WpSettingsApi.php @@ -30,7 +30,7 @@ class WpSettingsApi extends AbstractHookProvider public const HOOK_INIT = self::ACTION_PREFIX . 'init'; public const HOOK_INIT_SLUG__S = self::HOOK_INIT . '-%s'; public const HOOK_PRIORITY = 999; - public const VERSION = '3.10.0'; + public const VERSION = '3.11.0'; /** * The current plugin instance. From 20bb875937987d300f228514defb1d1313c1acaa Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:47:22 -0700 Subject: [PATCH 2/2] Fix PHPcs. --- src/WpSettingsApi.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WpSettingsApi.php b/src/WpSettingsApi.php index f8cb950..180c907 100755 --- a/src/WpSettingsApi.php +++ b/src/WpSettingsApi.php @@ -226,6 +226,7 @@ private function getAppCap(): string * Sanitize callback for Settings API * @param mixed $options * @return array + * * phpcs:disable Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType */ private function sanitizeOptionsArray(mixed $options): array @@ -274,6 +275,7 @@ private function sanitizeOptionsArray(mixed $options): array * Get sanitation callback for given option slug * @param string $option_slug option slug * @return callable|bool|string Boolean if no callback exists or Callable method + * * phpcs:disable Inpsyde.CodeQuality.NestingLevel.High * phpcs:disable Inpsyde.CodeQuality.ReturnTypeDeclaration.NoReturnType */