From 6c7548f32e38b885556a72e4861c2ccf82276c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Wed, 23 Oct 2024 08:33:53 +0200 Subject: [PATCH] update release --- CHANGELOG.md | 7 +++++++ eightshift-forms.php | 2 +- src/Rest/Routes/CptRoutes.php | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81e93db07..32635175f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ 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/). +## [5.1.5] + +### Fixed + +- Wrong function type hint for `getCptLimits` function. + ## [5.1.4] ### Fixed @@ -704,6 +710,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a - Initial production release. +[5.1.5]: https://github.com/infinum/eightshift-forms/compare/5.1.4...5.1.5 [5.1.4]: https://github.com/infinum/eightshift-forms/compare/5.1.3...5.1.4 [5.1.3]: https://github.com/infinum/eightshift-forms/compare/5.1.2...5.1.3 [5.1.2]: https://github.com/infinum/eightshift-forms/compare/5.1.1...5.1.2 diff --git a/eightshift-forms.php b/eightshift-forms.php index 42492dbd9..b89cb75fd 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: 5.1.4 + * Version: 5.1.5 * Text Domain: eightshift-forms * * @package EightshiftForms diff --git a/src/Rest/Routes/CptRoutes.php b/src/Rest/Routes/CptRoutes.php index 1251a3dad..1bacd1e0a 100644 --- a/src/Rest/Routes/CptRoutes.php +++ b/src/Rest/Routes/CptRoutes.php @@ -38,9 +38,9 @@ public function register(): void * @param WP_REST_Server $server The server object. * @param WP_REST_Request $request The request object. * - * @return array + * @return mixed */ - public function getCptLimits($results, WP_REST_Server $server, WP_REST_Request $request): array + public function getCptLimits($results, WP_REST_Server $server, WP_REST_Request $request) { $disableRoutes = [ '/wp/v2/' . UtilsConfig::SLUG_POST_TYPE,