Skip to content

Commit 0045943

Browse files
authored
Updates
1 parent 291c5a8 commit 0045943

File tree

5 files changed

+75
-53
lines changed

5 files changed

+75
-53
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog for WC Free Gift Coupons Bulk Coupon Generator
22

3+
## 1.4.0 - August 2, 2025
4+
### Breaking Changes
5+
- **Text Domain Standardization**: Changed text domain from `WC-Free-Gift-Coupons-Bulk-Coupons-Generator` to `wc-free-gift-coupons-bulk-coupons-generator` to comply with WordPress standards that require only lowercase letters, numbers, and hyphens.
6+
7+
### Security
8+
- **Nonce Verification Fix**: Added proper nonce verification in the `admin_init` method to prevent unauthorized form processing and address WordPress.Security.NonceVerification.Missing warning.
9+
10+
### Improvements
11+
- **Deprecated Function Removal**: Removed the deprecated `load_plugin_textdomain()` call as WordPress automatically handles plugin translations for plugins hosted on WordPress.org since version 4.6.
12+
- **Repository Links Update**: Updated all GitHub repository links to use lowercase format to match the renamed repository.
13+
- **Testing Support**: Added `wc_free_gift_bulk_coupons_is_loaded()` helper function to improve compatibility with testing frameworks and replace the removed test function.
14+
15+
### Development
16+
- **Package References**: Updated all `@package` references to use the new lowercase text domain format.
17+
318
## 1.3.0 - August 2, 2025
419
### Security
520
- **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.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![PHP Compatible](https://img.shields.io/badge/PHP-7.4%2B-purple.svg?logo=php)](https://www.php.net/)
77

88
## Current Version
9-
[![Version](https://img.shields.io/badge/Version-1.3.0-orange.svg?logo=github)](https://github.com/EngineScript/WC-Free-Gift-Coupons-Bulk-Coupons-Generator/releases/latest/download/free-gift-bulk-coupon-generator-1.3.0.zip)
9+
[![Version](https://img.shields.io/badge/Version-1.4.0-orange.svg?logo=github)](https://github.com/EngineScript/wc-free-gift-coupons-bulk-coupons-generator/releases/latest/download/free-gift-bulk-coupon-generator-1.4.0.zip)
1010

1111
A WordPress plugin for generating bulk free gift coupons that work specifically with the **Free Gift Coupons for WooCommerce** plugin. Creates coupons with the proper data structure required for free gift functionality.
1212

@@ -115,7 +115,7 @@ For a detailed list of changes, please see the [CHANGELOG.md](CHANGELOG.md) file
115115

116116
## Support
117117

118-
For support, feature requests, or bug reports, please visit the [GitHub repository](https://github.com/EngineScript/WC-Free-Gift-Coupons-Bulk-Coupons-Generator).
118+
For support, feature requests, or bug reports, please visit the [GitHub repository](https://github.com/EngineScript/wc-free-gift-coupons-bulk-coupons-generator).
119119

120120
---
121121

0 commit comments

Comments
 (0)