You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Security
Secure Coupon Generation: Replaced wp_rand() with the more secure random_int() for generating coupon codes, ensuring cryptographic-level randomness and reducing the risk of predictable codes.
Streamlined Nonce Verification: Removed a redundant nonce check in admin_init to simplify the security workflow, as the primary verification is already handled in handle_coupon_generation.
Bug Fixes
Corrected Transient Removal: Fixed a bug in uninstall.php where an incorrect transient key was used, preventing cached product data from being properly deleted upon plugin uninstallation.
Refactoring
Code Cleanup: Removed the unused fgbcg_admin_menu() function to improve code clarity and maintainability.
Installation
Download the zip file
Upload to your WordPress site through the Plugins > Add New > Upload menu
Activate the plugin
Navigate to WooCommerce > Coupon Generator to start using the plugin