Plugin Directory

Changeset 3470873


Ignore:
Timestamp:
02/27/2026 06:58:38 AM (5 weeks ago)
Author:
jacobo1
Message:

Deploy version 1.0.9

Location:
ghostchat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ghostchat/tags/1.0.9/ghostchat.php

    r3470730 r3470873  
    573573    private function get_wc_cart_context()
    574574    {
    575         $cart = WC()->cart;
    576         if (!$cart) {
     575        if (!function_exists('WC') || !WC() || !WC()->cart) {
    577576            return array(
    578577                'cart_items' => array(),
     
    582581        }
    583582
     583        $cart = WC()->cart;
    584584        $cart_items = array();
    585585        foreach ($cart->get_cart() as $cart_item) {
  • ghostchat/trunk/ghostchat.php

    r3470730 r3470873  
    573573    private function get_wc_cart_context()
    574574    {
    575         $cart = WC()->cart;
    576         if (!$cart) {
     575        if (!function_exists('WC') || !WC() || !WC()->cart) {
    577576            return array(
    578577                'cart_items' => array(),
     
    582581        }
    583582
     583        $cart = WC()->cart;
    584584        $cart_items = array();
    585585        foreach ($cart->get_cart() as $cart_item) {
Note: See TracChangeset for help on using the changeset viewer.