From 3a4653ba3b49231a5bb3acae1fbc9d47951f8842 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 13 Aug 2015 12:06:52 +0100 Subject: [PATCH] Run html_entity_decode over text attributes to fix problems with quote characters. --- includes/wc-attribute-functions.php | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-attribute-functions.php b/includes/wc-attribute-functions.php index 3afbc624866..328653fec13 100644 --- a/includes/wc-attribute-functions.php +++ b/includes/wc-attribute-functions.php @@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) { * @return array */ function wc_get_text_attributes( $raw_attributes ) { - return array_map( 'trim', array_map( 'stripslashes', explode( WC_DELIMITER, $raw_attributes ) ) ); + return array_map( 'trim', array_map( 'stripslashes', array_map( 'html_entity_decode', explode( WC_DELIMITER, $raw_attributes ) ) ) ); } /** diff --git a/readme.txt b/readme.txt index e2d227a9be2..3a46f55751d 100644 --- a/readme.txt +++ b/readme.txt @@ -159,7 +159,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == - +* Fix - Run html_entity_decode over text attributes to fix problems with quote characters. * Tweak - Order variations by menu_order by fallback to ID. = 2.4.3 - 12/08/2015 =