Stripslashes on text attributes

Fixes #8778 Closes #8771
This commit is contained in:
Mike Jolley 2015-08-11 14:55:35 +01:00
parent 7d27707043
commit 4dd19c3839
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @return array
*/
function wc_get_text_attributes( $raw_attributes ) {
return array_map( 'trim', explode( WC_DELIMITER, $raw_attributes ) );
return array_map( 'trim', array_map( 'stripslashes', explode( WC_DELIMITER, $raw_attributes ) ) );
}
/**