Skip to content

Commit

Permalink
Version 3.11.0 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
thefrosty authored Apr 24, 2024
2 parents f7a1c57 + 20bb875 commit 94a40c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 3 additions & 1 deletion src/WpSettingsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 94a40c8

Please sign in to comment.