Changeset 3470873
- Timestamp:
- 02/27/2026 06:58:38 AM (5 weeks ago)
- Location:
- ghostchat
- Files:
-
- 2 edited
-
tags/1.0.9/ghostchat.php (modified) (2 diffs)
-
trunk/ghostchat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ghostchat/tags/1.0.9/ghostchat.php
r3470730 r3470873 573 573 private function get_wc_cart_context() 574 574 { 575 $cart = WC()->cart; 576 if (!$cart) { 575 if (!function_exists('WC') || !WC() || !WC()->cart) { 577 576 return array( 578 577 'cart_items' => array(), … … 582 581 } 583 582 583 $cart = WC()->cart; 584 584 $cart_items = array(); 585 585 foreach ($cart->get_cart() as $cart_item) { -
ghostchat/trunk/ghostchat.php
r3470730 r3470873 573 573 private function get_wc_cart_context() 574 574 { 575 $cart = WC()->cart; 576 if (!$cart) { 575 if (!function_exists('WC') || !WC() || !WC()->cart) { 577 576 return array( 578 577 'cart_items' => array(), … … 582 581 } 583 582 583 $cart = WC()->cart; 584 584 $cart_items = array(); 585 585 foreach ($cart->get_cart() as $cart_item) {
Note: See TracChangeset
for help on using the changeset viewer.