• 1.1.12 9dab123209

    Release version 1.1.12 - Final redeclaration fix

    magdev released this 2025-12-22 17:52:34 +00:00 | 70 commits to main since this release

    Fixed critical class redeclaration error for WC_Tier_Package_Prices
    affecting version 1.1.11. This completes all redeclaration protection
    by protecting the main plugin class.

    Fixes:

    • Class redeclaration error for WC_Tier_Package_Prices
    • Fatal error "Cannot redeclare class WC_Tier_Package_Prices" when plugin file loaded multiple times
    • Plugin activation failures caused by class redeclaration

    Technical Changes:

    • Wrapped WC_Tier_Package_Prices class declaration in class_exists() check
    • Completes comprehensive redeclaration protection for all plugin components
    • All functions, constants, and classes now safely guarded against redeclaration
    • Plugin now fully protected from all redeclaration scenarios

    Protected Components:

    • Functions: wc_tpp_woocommerce_missing_notice(), wc_tpp_init()
    • Constants: WC_TPP_VERSION, WC_TPP_PLUGIN_DIR, WC_TPP_PLUGIN_URL, WC_TPP_PLUGIN_BASENAME
    • Classes: WC_Tier_Package_Prices

    Updated Files:

    • wc-tier-and-package-prices.php (version 1.1.12, class protection)
    • composer.json (version 1.1.12)
    • CHANGELOG.md (v1.1.12 section)
    • All translation files compiled (.mo files)

    🤖 Generated with Claude Code

    Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

    Downloads