From 5c85cfc27f14a5bed8843214aec7d7009fa0f7be Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Wed, 26 Jun 2024 14:16:55 +0200 Subject: [PATCH] chore: align with upstream template Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com> --- CHANGELOG.md | 4 ++++ woocommerce/cart/cart-shipping.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0de0b..8f3d969 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 2b0fa13..90b92d6 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> -- GitLab