diff --git a/templates/cart/cart-totals.php b/templates/cart/cart-totals.php index 2dedfe8e49a..e9602e0314d 100644 --- a/templates/cart/cart-totals.php +++ b/templates/cart/cart-totals.php @@ -73,7 +73,7 @@ defined( 'ABSPATH' ) || exit; } if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) { - foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + foreach ( WC()->cart->get_tax_totals() as $code => $tax ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?> label ) . $estimated_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> diff --git a/templates/cart/cross-sells.php b/templates/cart/cross-sells.php index c541a0c9d98..6972b42f251 100644 --- a/templates/cart/cross-sells.php +++ b/templates/cart/cross-sells.php @@ -30,7 +30,7 @@ if ( $cross_sells ) : ?> get_id() ); - setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited, Squiz.PHP.DisallowMultipleAssignments.Found + setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited, Squiz.PHP.DisallowMultipleAssignments.Found wc_get_template_part( 'content', 'product' ); ?> diff --git a/templates/checkout/form-pay.php b/templates/checkout/form-pay.php index 015cde208e3..98bb85d6996 100644 --- a/templates/checkout/form-pay.php +++ b/templates/checkout/form-pay.php @@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit; -$totals = $order->get_order_item_totals(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited +$totals = $order->get_order_item_totals(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index 1df0bea5b09..3fb3639f806 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -83,7 +83,7 @@ defined( 'ABSPATH' ) || exit; cart->display_prices_including_tax() ) : ?> - cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited ?> + cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?> label ); ?> formatted_amount ); ?> diff --git a/templates/myaccount/my-orders.php b/templates/myaccount/my-orders.php index 9cc0f4de0e8..0b671f01325 100644 --- a/templates/myaccount/my-orders.php +++ b/templates/myaccount/my-orders.php @@ -49,7 +49,7 @@ if ( $customer_orders ) : ?> get_item_count(); ?> @@ -80,7 +80,7 @@ if ( $customer_orders ) : ?> $actions = wc_get_account_orders_actions( $order ); if ( ! empty( $actions ) ) { - foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited echo '' . esc_html( $action['name'] ) . ''; } } diff --git a/templates/myaccount/orders.php b/templates/myaccount/orders.php index aacbd2ef6d3..b9059b9cfc6 100644 --- a/templates/myaccount/orders.php +++ b/templates/myaccount/orders.php @@ -35,7 +35,7 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> orders as $customer_order ) { - $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $item_count = $order->get_item_count() - $order->get_item_count_refunded(); ?> @@ -66,7 +66,7 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> $actions = wc_get_account_orders_actions( $order ); if ( ! empty( $actions ) ) { - foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited echo '' . esc_html( $action['name'] ) . ''; } } diff --git a/templates/myaccount/payment-methods.php b/templates/myaccount/payment-methods.php index 8d00b9fbb31..a016cf2445c 100644 --- a/templates/myaccount/payment-methods.php +++ b/templates/myaccount/payment-methods.php @@ -35,7 +35,7 @@ do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?> - $methods ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited ?> + $methods ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?> $column_name ) : ?> @@ -53,7 +53,7 @@ do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?> } elseif ( 'expires' === $column_id ) { echo esc_html( $method['expires'] ); } elseif ( 'actions' === $column_id ) { - foreach ( $method['actions'] as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + foreach ( $method['actions'] as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited echo '' . esc_html( $action['name'] ) . ' '; } } diff --git a/templates/order/order-details.php b/templates/order/order-details.php index 4e5a1d0e915..17f82e1bc27 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit; -$order = wc_get_order( $order_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited +$order = wc_get_order( $order_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited if ( ! $order ) { return;