From 7ba3ce7e696612f218690e3b774f2a06b97eeca4 Mon Sep 17 00:00:00 2001 From: Marcin Kolanko <marcin.kolanko@wpdesk.net> Date: Thu, 8 May 2025 13:04:32 +0200 Subject: [PATCH 1/4] fix: remove false value as deprecated --- src/PluginBootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PluginBootstrap.php b/src/PluginBootstrap.php index ab0e31d..0362e86 100644 --- a/src/PluginBootstrap.php +++ b/src/PluginBootstrap.php @@ -162,7 +162,7 @@ final class PluginBootstrap { }, 10, 4 ); \load_plugin_textdomain( $plugin_info->get_text_domain(), - false, + '', basename( $plugin_info->get_plugin_dir() ) . "/$lang_dir/" ); } -- GitLab From 2edeb76637fbcf62f4e423469089c6b0234be8d8 Mon Sep 17 00:00:00 2001 From: Marcin Kolanko <marcin.kolanko@wpdesk.net> Date: Thu, 8 May 2025 13:39:58 +0200 Subject: [PATCH 2/4] fix: change plugin_url function --- src/PluginBootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PluginBootstrap.php b/src/PluginBootstrap.php index 0362e86..a737a14 100644 --- a/src/PluginBootstrap.php +++ b/src/PluginBootstrap.php @@ -200,7 +200,7 @@ final class PluginBootstrap { $plugin_info->set_version( $this->plugin_version ); $plugin_info->set_product_id( $this->product_id ); $plugin_info->set_text_domain( $this->plugin_text_domain ); - $plugin_info->set_plugin_url( plugins_url( dirname( plugin_basename( $this->plugin_file ) ) ) ); + $plugin_info->set_plugin_url( plugins_url( '', $this->plugin_file ) ); $plugin_info->set_plugin_shops( $this->plugin_shops ); return $plugin_info; -- GitLab From 8ea7f6eaf95480300f554f0684f8248bbb0663db Mon Sep 17 00:00:00 2001 From: Marcin Kolanko <marcin.kolanko@wpdesk.net> Date: Wed, 21 May 2025 15:59:55 +0200 Subject: [PATCH 3/4] refactor: replace option key --- src/PluginBootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PluginBootstrap.php b/src/PluginBootstrap.php index a737a14..b12f747 100644 --- a/src/PluginBootstrap.php +++ b/src/PluginBootstrap.php @@ -135,7 +135,7 @@ final class PluginBootstrap { private function add_activation_hook_for_save_activation_date() { add_action( 'activated_plugin', static function ( $plugin_file, $network_wide = false ) { if ( ! $network_wide ) { - $option_name = 'plugin_activation_' . $plugin_file; + $option_name = 'activation_plugin_' . $plugin_file; $activation_date = get_option( $option_name, '' ); if ( '' === $activation_date ) { $activation_date = current_time( 'mysql' ); -- GitLab From 8a4b171225e8dc48ccd4713a8dd5256db4706eea Mon Sep 17 00:00:00 2001 From: Marcin Kolanko <marcin.kolanko@wpdesk.net> Date: Wed, 21 May 2025 16:00:14 +0200 Subject: [PATCH 4/4] docs: changelog update --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c756371..c5daaa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.3.0] - 2025-05-21 +### Changed +- Plugin activation option key. + ## [1.2.3] - 2024-11-09 ### Fixed - Hide doing it wrong notice on production environment -- GitLab