From cf7ee6b86ef258436523f60b0b0470d0a230dfce Mon Sep 17 00:00:00 2001 From: Roberto Guagliardo Date: Thu, 11 Dec 2025 21:23:31 +0000 Subject: [PATCH] fix: Update version to 1.2.2 in groq-ai-product-text.php and ensure plugin data is loaded in SitiWebUpdater --- SitiWebUpdater.php | 5 +++++ groq-ai-product-text.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SitiWebUpdater.php b/SitiWebUpdater.php index fc78a5a..e070288 100644 --- a/SitiWebUpdater.php +++ b/SitiWebUpdater.php @@ -22,12 +22,17 @@ class SitiWebUpdater { $this->file = $file; + $this->set_plugin_properties(); add_action( 'admin_init', array( $this, 'set_plugin_properties' ) ); return $this; } public function set_plugin_properties() { + if ( ! function_exists( 'get_plugin_data' ) ) { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + } + $this->plugin = get_plugin_data( $this->file ); $this->basename = plugin_basename( $this->file ); $this->active = is_plugin_active( $this->basename ); diff --git a/groq-ai-product-text.php b/groq-ai-product-text.php index 6615c1d..8f8b014 100644 --- a/groq-ai-product-text.php +++ b/groq-ai-product-text.php @@ -2,7 +2,7 @@ /** * Plugin Name: SitiAI Product Teksten * Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce. - * Version: 1.2.1 + * Version: 1.2.2 * Author: SitiAI */