diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0de0ba7b1b4cf6000c673990acd1cadc5de53a..8f3d9694be470e26c71ce8d1a3d360e97fa64c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +[2.0.1] - 2024-06-26 +# Changed +* align with original WooCommerce template + [2.0.0] - 2021-05-04 # Changed * moved to folder diff --git a/woocommerce/cart/cart-shipping.php b/woocommerce/cart/cart-shipping.php index 2b0fa134eca7e3ff828287aaaa6f5c24197d1bc8..90b92d67c21958ba11c8168f97e524d43567e9db 100644 --- a/woocommerce/cart/cart-shipping.php +++ b/woocommerce/cart/cart-shipping.php @@ -12,9 +12,9 @@ * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * - * @see https://docs.woocommerce.com/document/template-structure/ + * @see https://woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.3.0 + * @version 8.8.0 */ defined( 'ABSPATH' ) || exit; @@ -27,7 +27,7 @@ $calculator_text = ''; <tr class="woocommerce-shipping-totals shipping"> <th><?php echo wp_kses_post( $package_name ); ?></th> <td data-title="<?php echo esc_attr( $package_name ); ?>"> - <?php if ( $available_methods ) : ?> + <?php if ( ! empty( $available_methods ) && is_array( $available_methods ) ) : ?> <ul id="shipping_method" class="woocommerce-shipping-methods"> <?php foreach ( $available_methods as $method ) : ?> <li>