From bd9e1faa8870e01bf5786a46ca2b762b47a76290 Mon Sep 17 00:00:00 2001
From: Marcin Kolanko <marcin.kolanko@wpdesk.net>
Date: Tue, 13 May 2025 11:02:25 +0200
Subject: [PATCH 1/3] fix: remove of the plugin_api filter as prohibited for
 use in the plugin review.

---
 src/Basic_Requirement_Checker.php | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/Basic_Requirement_Checker.php b/src/Basic_Requirement_Checker.php
index 43a8981..d3309d9 100644
--- a/src/Basic_Requirement_Checker.php
+++ b/src/Basic_Requirement_Checker.php
@@ -491,22 +491,6 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
 			if ( function_exists( 'wp_nonce_url' ) && function_exists( 'wp_create_nonce' ) ) {
 				$install_url = wp_nonce_url( $install_url, 'install-plugin_' . $slug );
 			}
-			add_filter( 'plugins_api', function( $api, $action, $args ) use ( $plugin_info, $slug ) {
-				if ( 'plugin_information' !== $action ||
-				     false !== $api ||
-				     ! isset( $args->slug ) ||
-				     $slug !== $args->slug
-				) {
-					return $api;
-				}
-
-				$api                = new stdClass();
-				$api->name          = $plugin_info['nice_name']; // self in closures requires 5.4
-				$api->version       = '';
-				$api->download_link = esc_url( $plugin_info['repository_url'] ); // self in closures requires 5.4
-
-				return $api;
-			}, 10, 3 );
 
 			return $install_url;
 		}
-- 
GitLab


From 9d889687ed4d2ea7175de226316840437c5e99b2 Mon Sep 17 00:00:00 2001
From: Marcin Kolanko <marcin.kolanko@wpdesk.net>
Date: Tue, 13 May 2025 11:11:13 +0200
Subject: [PATCH 2/3] docs: changelog update

---
 CHANGELOG.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82415f6..a21210b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## [3.7.0] 
+### Fixed
+- Remove of the plugin_api filter as prohibited for use in the plugin review.
+
 ## [3.6.3] - 2024-04-16
 ### Fixed
 - Prevent error notice
-- 
GitLab


From 6a9e76e2f556cd8e9f18d2b5211058e2f0b5a885 Mon Sep 17 00:00:00 2001
From: Marcin Kolanko <marcin.kolanko@wpdesk.net>
Date: Fri, 16 May 2025 16:24:23 +0200
Subject: [PATCH 3/3] docs: changelog update

---
 CHANGELOG.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a21210b..decc619 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-## [3.7.0] 
+## [3.7.0] - 2025-05-16
 ### Fixed
 - Remove of the plugin_api filter as prohibited for use in the plugin review.
 
-- 
GitLab