From 7becdf346c6a9fd0d1290ffdc09d5d92bc7977e1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 6 Nov 2012 12:52:08 +0000 Subject: [PATCH] kses --- templates/cart/totals.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/cart/totals.php b/templates/cart/totals.php index 00388ace3cb..4c21896238c 100644 --- a/templates/cart/totals.php +++ b/templates/cart/totals.php @@ -48,7 +48,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); // Prepare text labels with price for each shipping method foreach ( $available_methods as $method ) { - $method->full_label = esc_html( $method->label ); + $method->full_label = $method->label; if ( $method->cost > 0 ) { $method->full_label .= ': '; @@ -71,7 +71,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); // Print a single available shipping method as plain text if ( 1 === count( $available_methods ) ) { - echo $method->full_label . ''; + echo wp_kses_post( $method->full_label ) . ''; // Show multiple shipping methods } else { @@ -81,7 +81,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); echo ''; @@ -91,7 +91,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); echo '';