From 09176808c73db53b3269c8f0f1733c812730bf05 Mon Sep 17 00:00:00 2001 From: jonathansadowski Date: Mon, 24 Aug 2020 14:44:20 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"Fixed=20HTML=20entities=20in=20produc?= =?UTF-8?q?t=20name=20not=20showing=20correctly=20in=20cart=20pag=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/cart/cart.php | 8 ++++---- templates/single-product/title.php | 11 ++++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 33640fc0887..502811acbe7 100644 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -11,8 +11,8 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @package WooCommerce\Templates - * @version 4.4.0 + * @package WooCommerce/Templates + * @version 3.8.0 */ defined( 'ABSPATH' ) || exit; @@ -77,9 +77,9 @@ do_action( 'woocommerce_before_cart' ); ?> get_name() ), $cart_item, $cart_item_key ) . ' ' ); + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . ' ' ); } else { - echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), esc_html( $_product->get_name() ) ), $cart_item, $cart_item_key ) ); + echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) ); } do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key ); diff --git a/templates/single-product/title.php b/templates/single-product/title.php index 52af1121410..f117c11089d 100644 --- a/templates/single-product/title.php +++ b/templates/single-product/title.php @@ -10,16 +10,13 @@ * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * - * @see https://docs.woocommerce.com/document/template-structure/ - * @package WooCommerce\Templates - * @version 4.4.0 + * @see https://docs.woocommerce.com/document/template-structure/ + * @package WooCommerce/Templates + * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } -?> -

- -

+the_title( '

', '

' );