Run html_entity_decode over text attributes to fix problems with quote characters.

This commit is contained in:
Mike Jolley 2015-08-13 12:06:52 +01:00
parent 8f759c8af1
commit 3a4653ba3b
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) ) ) );
}
/**

View File

@ -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 =