fix: Update version to 1.2.2 in groq-ai-product-text.php and ensure plugin data is loaded in SitiWebUpdater

This commit is contained in:
2025-12-11 21:23:31 +00:00
parent 1d19b36493
commit cf7ee6b86e
2 changed files with 6 additions and 1 deletions

View File

@@ -22,12 +22,17 @@ class SitiWebUpdater {
$this->file = $file; $this->file = $file;
$this->set_plugin_properties();
add_action( 'admin_init', array( $this, 'set_plugin_properties' ) ); add_action( 'admin_init', array( $this, 'set_plugin_properties' ) );
return $this; return $this;
} }
public function set_plugin_properties() { 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->plugin = get_plugin_data( $this->file );
$this->basename = plugin_basename( $this->file ); $this->basename = plugin_basename( $this->file );
$this->active = is_plugin_active( $this->basename ); $this->active = is_plugin_active( $this->basename );

View File

@@ -2,7 +2,7 @@
/** /**
* Plugin Name: SitiAI Product Teksten * Plugin Name: SitiAI Product Teksten
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce. * Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
* Version: 1.2.1 * Version: 1.2.2
* Author: SitiAI * Author: SitiAI
*/ */