You've already forked wc-tier-and-package-prices
Release version 1.1.10 - Complete function redeclaration fix
Fixed critical function redeclaration error for wc_tpp_init() affecting version 1.1.9. This completes the fix started in v1.1.9 by protecting all global functions from redeclaration during plugin lifecycle events. Fixes: - Function redeclaration error for wc_tpp_init() - Fatal error "Cannot redeclare function wc_tpp_init()" when plugin file loaded multiple times - Plugin activation failures Technical Changes: - Wrapped wc_tpp_init() function in function_exists() check - Both wc_tpp_woocommerce_missing_notice() and wc_tpp_init() now safely guarded - Prevents fatal errors during WordPress plugin activation/deactivation cycles - Comprehensive protection for all global function declarations Updated Files: - wc-tier-and-package-prices.php (version 1.1.10, wc_tpp_init safety check) - composer.json (version 1.1.10) - CHANGELOG.md (v1.1.10 section) - All translation files compiled (.mo files) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
15
CHANGELOG.md
15
CHANGELOG.md
@@ -5,6 +5,21 @@ All notable changes to WooCommerce Tier and Package Prices will be documented in
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.1.10] - 2025-12-22
|
||||
|
||||
### Fixed
|
||||
|
||||
- **CRITICAL:** Function redeclaration error for `wc_tpp_init()` affecting version 1.1.9
|
||||
- Fatal error "Cannot redeclare function wc_tpp_init()" when plugin file loaded multiple times
|
||||
- Plugin activation failures caused by function redeclaration
|
||||
|
||||
### Technical Details
|
||||
|
||||
- Wrapped `wc_tpp_init()` function in `function_exists()` check
|
||||
- Completes the fix started in v1.1.9 by protecting all global functions
|
||||
- Prevents fatal errors during WordPress plugin activation cycles
|
||||
- Both `wc_tpp_woocommerce_missing_notice()` and `wc_tpp_init()` now safely guarded
|
||||
|
||||
## [1.1.9] - 2025-12-22
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user