Plugin Directory

Changeset 3462405


Ignore:
Timestamp:
02/16/2026 10:47:51 AM (3 weeks ago)
Author:
rocketbeetlecom
Message:

Release version 1.6.26 - Fix fatal error when WooCommerce cart is not initialized

Location:
beetle-tracking
Files:
788 added
4 edited

Legend:

Unmodified
Added
Removed
  • beetle-tracking/trunk/beetle-tracking.php

    r3457727 r3462405  
    44 * Plugin URI: https://rocketbeetle.com/beetle-tracking
    55 * Description: Implement Cloudflare Zaraz tracking on your site. Tracking key events with our automated tracking, and add you own custom tracking. WooCommerce is fully supported.
    6  * Version: 1.6.24
     6 * Version: 1.6.26
    77 * Requires PHP: 7.4
    88 * Author: RocketBeetle
     
    1818}
    1919
    20 define('BEETLE_TRACKING_VERSION', '1.6.23');
     20define('BEETLE_TRACKING_VERSION', '1.6.26');
    2121define('BEETLE_TRACKING_DIR_PATH', plugin_dir_path(__FILE__));
    2222define('BEETLE_TRACKING_DIR_URL', plugin_dir_url(__FILE__));
  • beetle-tracking/trunk/includes/Controller/WooCommerceController.php

    r3424136 r3462405  
    6565            && is_checkout()
    6666            && !is_wc_endpoint_url()
     67            && WC()->cart
    6768            && count(WC()->cart->get_cart()) > 0
    6869        ) {
     
    352353        $cart_contents = [];
    353354
     355        if (!WC()->cart) {
     356            return;
     357        }
     358
    354359        $cart = WC()->cart->get_cart();
    355360        if (!empty($cart)) {
  • beetle-tracking/trunk/includes/Utils/Settings.php

    r3168822 r3462405  
    4343                    $settings[$event . '_google_ads']
    4444                )
    45             )
     45            ),
     46            $event
    4647        );
    4748    }
  • beetle-tracking/trunk/readme.txt

    r3457727 r3462405  
    44Tested up to: 6.9
    55Requires PHP: 7.4
    6 Stable tag: 1.6.24
     6Stable tag: 1.6.26
    77Contributors: rocketbeetlecom
    88Donate link: https://beetle-tracking.com/buy-pro/
     
    170170
    171171== Changelog ==
     172
     173= 1.6.26 - 2026-02-16 =
     174* Fixed: Fatal error when WooCommerce cart is not initialized (e.g. during REST API requests or plugin activation)
     175
     176= 1.6.25 - 2026-02-16 =
     177* Improvement: Added event name parameter to is_event_active filter for Pro plugin extensibility
    172178
    173179= 1.6.24 - 2026-02-10 =
Note: See TracChangeset for help on using the changeset viewer.