From 82bec621c613b4ca03ac21c888ce37d27f9437eb Mon Sep 17 00:00:00 2001 From: magdev Date: Sat, 24 Jan 2026 10:18:33 +0100 Subject: [PATCH] Bump version to 0.3.7 Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ wc-licensed-product.php | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04ce224..9382295 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.7] - 2026-01-24 + +### Added + +- Download counter for licensed product versions (tracked per version) +- Download Statistics admin dashboard widget showing total downloads, top products, and top versions +- New `DownloadWidgetController` class for download statistics widget +- New `incrementDownloadCount()`, `getTotalDownloadCount()`, and `getDownloadStatistics()` methods in `VersionManager` +- New `download_count` column in product versions database table + +### Fixed + +- Dashboard widget "View All Licenses" link now uses correct page slug (`wc-licenses`) +- Download links in customer account page no longer result in 404 errors (added query var registration) +- Added `license-download` endpoint registration during plugin activation + +### Changed + +- Removed redundant "Status Breakdown" section from dashboard widget (info already shown in stat cards) +- License Types section in dashboard widget now uses card style matching the stats row above +- Improved dashboard widget visual consistency + +### Technical Details + +- Added `addDownloadQueryVar()` method to `DownloadController` for proper endpoint registration +- Updated `Installer::activate()` to register `license-download` endpoint before flushing rewrite rules +- Updated translations (356 strings) + ## [0.3.6] - 2026-01-23 ### Security diff --git a/wc-licensed-product.php b/wc-licensed-product.php index 745afed..49bab7b 100644 --- a/wc-licensed-product.php +++ b/wc-licensed-product.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Licensed Product * Plugin URI: https://src.bundespruefstelle.ch/magdev/wc-licensed-product * Description: WooCommerce plugin to sell software products using license keys with domain-based validation. - * Version: 0.3.6 + * Version: 0.3.7 * Author: Marco Graetsch * Author URI: https://src.bundespruefstelle.ch/magdev * License: GPL-2.0-or-later @@ -28,7 +28,7 @@ if (!defined('ABSPATH')) { } // Plugin constants -define('WC_LICENSED_PRODUCT_VERSION', '0.3.6'); +define('WC_LICENSED_PRODUCT_VERSION', '0.3.7'); define('WC_LICENSED_PRODUCT_PLUGIN_FILE', __FILE__); define('WC_LICENSED_PRODUCT_PLUGIN_DIR', plugin_dir_path(__FILE__)); define('WC_LICENSED_PRODUCT_PLUGIN_URL', plugin_dir_url(__FILE__));