diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index 1f57ce5ee..7a8eb06f8 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -13,7 +13,7 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @package WooCommerce/Templates + * @package WooCommerce\Templates * @version 3.7.0 */ @@ -35,7 +35,7 @@ orders as $customer_order ) { - $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Override + $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $item_count = $order->get_item_count() - $order->get_item_count_refunded(); ?> @@ -63,11 +63,11 @@ $orders_action ) { - echo '' . esc_html( $orders_action['name'] ) . ''; + if ( ! empty( $actions ) ) { + foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + echo '' . esc_html( $action['name'] ) . ''; } } ?> @@ -97,12 +97,9 @@
- - - +
-