4 Commits

Author SHA1 Message Date
71424567bf chore: bump version to 1.9.7
All checks were successful
Build & Release Plugin / release (push) Successful in 15s
2026-02-01 04:36:30 +00:00
82da1180da fix: include owner and repository in license verification request
All checks were successful
Build & Release Plugin / release (push) Successful in 6s
2026-02-01 04:36:06 +00:00
2c749eebd5 fix: enhance license validation logic in SitiWebUpdater2
All checks were successful
Build & Release Plugin / release (push) Successful in 5s
2026-02-01 04:10:01 +00:00
github-actions[bot]
04a0c8be37 chore: update manifest.json 2026-02-01 04:02:03 +00:00
3 changed files with 15 additions and 3 deletions

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.9.6 * Version: 1.9.7
* Author: Roberto Guagliardo | SitiWeb * Author: Roberto Guagliardo | SitiWeb
* Author URI: https://sitiweb.nl/ * Author URI: https://sitiweb.nl/
* Text Domain: siti-ai-product-content-generator * Text Domain: siti-ai-product-content-generator

View File

@@ -131,6 +131,8 @@ class SitiWebUpdater2 {
$license_data['key'] = $this->get_license_key(); $license_data['key'] = $this->get_license_key();
} }
$license_data['licenseValid'] = ! empty( $body['valid'] );
$version = null; $version = null;
if ( isset( $body['pluginVersion'] ) && $body['pluginVersion'] ) { if ( isset( $body['pluginVersion'] ) && $body['pluginVersion'] ) {
$version = $body['pluginVersion']; $version = $body['pluginVersion'];
@@ -257,6 +259,8 @@ class SitiWebUpdater2 {
'key' => $license_key, 'key' => $license_key,
'hostname' => $hostname, 'hostname' => $hostname,
'currentVersion' => $current_version, 'currentVersion' => $current_version,
'owner' => $this->owner,
'repository' => $this->repository,
) ), ) ),
'timeout' => 15, 'timeout' => 15,
) ); ) );
@@ -303,7 +307,15 @@ class SitiWebUpdater2 {
public function is_license_valid() { public function is_license_valid() {
$data = $this->get_license_data(); $data = $this->get_license_data();
return ! empty( $data ) && ! empty( $data['key'] ); if ( empty( $data ) || empty( $data['key'] ) ) {
return false;
}
if ( isset( $data['licenseValid'] ) ) {
return (bool) $data['licenseValid'];
}
return true;
} }
public function get_latest_known_version() { public function get_latest_known_version() {

View File

@@ -1,7 +1,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.9.5", "version": "1.9.6",
"author": "Roberto Guagliardo | SitiWeb", "author": "Roberto Guagliardo | SitiWeb",
"author_url": "https://sitiweb.nl/" "author_url": "https://sitiweb.nl/"
} }