Run html_entity_decode over text attributes to fix problems with quote characters.
This commit is contained in:
parent
8f759c8af1
commit
3a4653ba3b
|
@ -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 ) ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue