Releases: JRG-code/custom-affiliate-system
Releases · JRG-code/custom-affiliate-system
Release list
Version 2.2.2
Version 2.2.1
Version 2.2.0
- Add function_exists() checks before calling cas_adjust_brightness()
- Add function_exists() checks before calling cas_get_general_setting()
- Provide safe fallback colors if functions not available
- Prevents fatal errors if helpers.php not loaded properly
Version 2.1.8
Fix: Add dashboard color customization (safe version)
Version 2.1.7
Add comprehensive diagnostics system for affiliate tracking
Make tracking logs conditional on debug mode
Version 2.1.6
v2.1.6 Update custom-affiliate-system.php
Version 2.1.5
Added automatic repair of incomplete settings during plugin updates to prevent "Missing Tier" warnings while preserving user customizations.
Problem:
- Plugin updates were not checking if settings were complete
- Users who had customized settings would see "Missing Tier I/II/Ambassador" warnings
- Settings were sometimes lost or corrupted during updates
Solution:
- Created cas_repair_incomplete_settings() function that:
- Performs deep merge of current settings with defaults
- Preserves all existing custom values
- Fills in only missing fields
- Updated activate() to call repair function on every update
- Existing customizations are now preserved while gaps are filled
This ensures settings are always complete without losing user preferences.
Version 2.1.4
v2.1.4 Update version number to 2.1.4
Version 2.1.3
- Add error_log() calls throughout sync process (always active, not just in debug mode)
- Log every affiliate being checked and what action is taken
- Log coupon creation attempts and results in detail
- Add summary logging at end of sync with counts and details
- This helps diagnose why sync isn't creating coupons when it should
The logs will appear in PHP error log (e.g., /var/log/apache2/error.log) Look for lines starting with "=== AFFILIATE SYNC" and "create_coupon:"
Version 2.1.2
Fix sync functionality with cache clearing and trash handling