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( '

', '

' );