From eb091acf6692b7b5a5f029631c0e06f8fe202b5f Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 27 Feb 2018 14:05:41 +0100 Subject: [PATCH] CS: reformat a very long line This line was quite unreadable. Additionally, it was using the "heavy" `wp_kses_data()` function to escape item count phrase, while that phrase should not contain HTML in the first place and therefore can use the lighter `esc_html()` function to do the output escaping. --- inc/woocommerce.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 28933f3..6d6000e 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -225,8 +225,14 @@ if ( ! function_exists( '_s_woocommerce_cart_link' ) ) { function _s_woocommerce_cart_link() { ?> - - cart->get_cart_subtotal() ); ?> cart->get_cart_contents_count(), '_s' ), WC()->cart->get_cart_contents_count() ) ); ?> + cart->get_cart_contents_count(), '_s' ), + WC()->cart->get_cart_contents_count() + ); + ?> + cart->get_cart_subtotal() ); ?>