From 291a9971610dcaf88af910aaddfa45ccba4d3f66 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 17 Jun 2016 13:21:59 +0100 Subject: [PATCH] Don't show debug on checkout Closes #11166 --- includes/class-wc-shipping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-shipping.php b/includes/class-wc-shipping.php index fda7db35bcf..b76f98e9632 100644 --- a/includes/class-wc-shipping.php +++ b/includes/class-wc-shipping.php @@ -137,7 +137,7 @@ class WC_Shipping { $this->shipping_methods = $shipping_zone->get_shipping_methods( true ); // Debug output - if ( ! empty( $status_options['shipping_debug_mode'] ) ) { + if ( ! empty( $status_options['shipping_debug_mode'] ) && ! defined( 'WOOCOMMERCE_CHECKOUT' ) ) { wc_add_notice( 'Customer matched zone "' . $shipping_zone->get_zone_name() . '"' ); } } else {