You've already forked wc-tier-and-package-prices
Fixed critical bug that prevented plugin activation in v1.1.3, v1.1.4, and v1.1.5. Root Cause: - WC_TPP_Cart and WC_TPP_Frontend classes were instantiated immediately when their files were loaded (via `new ClassName();` at bottom of files) - This happened BEFORE WooCommerce was fully loaded - Hook registration attempted to access WooCommerce functions before they existed - Result: Fatal error during plugin activation Solution: - Removed immediate instantiation from class-wc-tpp-cart.php (line 251) - Removed immediate instantiation from class-wc-tpp-frontend.php (line 186) - Added init_classes() method to main plugin class - Classes now instantiated via woocommerce_loaded hook - Ensures WooCommerce is fully initialized before any hooks are registered Changes: - includes/class-wc-tpp-cart.php - Removed `new WC_TPP_Cart();` - includes/class-wc-tpp-frontend.php - Removed `new WC_TPP_Frontend();` - wc-tier-and-package-prices.php - Added init_classes() and woocommerce_loaded hook - CHANGELOG.md - Added v1.1.6 section - composer.json - Version 1.1.6 - All translation files updated to 1.1.6 - All .mo files recompiled This fix ensures proper WordPress plugin lifecycle: 1. Plugin file loaded 2. Classes defined (but not instantiated) 3. WooCommerce loads 4. woocommerce_loaded hook fires 5. Classes instantiated with full WooCommerce availability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
23 lines
541 B
JSON
23 lines
541 B
JSON
{
|
|
"name": "magdev/wc-tier-package-prices",
|
|
"description": "WooCommerce plugin for tier pricing and package prices with Twig templates",
|
|
"version": "1.1.6",
|
|
"type": "wordpress-plugin",
|
|
"license": "GPL-2.0-or-later",
|
|
"authors": [
|
|
{
|
|
"name": "Marco Graetsch",
|
|
"homepage": "https://src.bundespruefstelle.ch/magdev"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.4",
|
|
"twig/twig": "^3.0"
|
|
},
|
|
"autoload": {
|
|
"classmap": [
|
|
"includes/"
|
|
]
|
|
}
|
|
}
|