diff --git a/includes/admin/meta-boxes/class-wc-meta-box-product-data.php b/includes/admin/meta-boxes/class-wc-meta-box-product-data.php index fdc85bf6eae..4663d136319 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-product-data.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-product-data.php @@ -462,7 +462,7 @@ class WC_Meta_Box_Product_Data { $metabox_class[] = $taxonomy; $attribute_label = wc_attribute_label( $taxonomy ); } else { - $attribute_label = apply_filters( 'woocommerce_attribute_label', $attribute['name'], $attribute['name'] ); + $attribute_label = apply_filters( 'woocommerce_attribute_label', $attribute['name'], $attribute['name'], false ); } include( 'views/html-product-attribute.php' ); diff --git a/includes/admin/meta-boxes/views/html-order-item-meta.php b/includes/admin/meta-boxes/views/html-order-item-meta.php index b6341407484..6758f5bc995 100644 --- a/includes/admin/meta-boxes/views/html-order-item-meta.php +++ b/includes/admin/meta-boxes/views/html-order-item-meta.php @@ -33,7 +33,7 @@ $meta['meta_key'] = wc_attribute_label( wc_sanitize_taxonomy_name( $meta['meta_key'] ) ); $meta['meta_value'] = isset( $term->name ) ? $term->name : $meta['meta_value']; } else { - $meta['meta_key'] = apply_filters( 'woocommerce_attribute_label', wc_attribute_label( $meta['meta_key'], $_product ), $meta['meta_key'] ); + $meta['meta_key'] = apply_filters( 'woocommerce_attribute_label', wc_attribute_label( $meta['meta_key'], $_product ), $meta['meta_key'], false ); } echo '' . wp_kses_post( rawurldecode( $meta['meta_key'] ) ) . ':' . wp_kses_post( wpautop( make_clickable( rawurldecode( $meta['meta_value'] ) ) ) ) . '';