diff --git a/plugins/woocommerce/templates/order/order-details.php b/plugins/woocommerce/templates/order/order-details.php index 667eac1ae07..f9b30b79596 100644 --- a/plugins/woocommerce/templates/order/order-details.php +++ b/plugins/woocommerce/templates/order/order-details.php @@ -15,8 +15,6 @@ * @version 7.7.0 */ -use Automattic\WooCommerce\Internal\Utilities\HtmlSanitizer; - defined( 'ABSPATH' ) || exit; $order = wc_get_order( $order_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited @@ -85,7 +83,7 @@ if ( $show_downloads ) { ?> - get( HtmlSanitizer::class )->sanitize( $total['value'] ) : wp_kses_post( $total['value'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +