parent
87dc31ffac
commit
6f42514afb
|
@ -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' );
|
||||
|
|
|
@ -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 '<tr><th>' . wp_kses_post( rawurldecode( $meta['meta_key'] ) ) . ':</th><td>' . wp_kses_post( wpautop( make_clickable( rawurldecode( $meta['meta_value'] ) ) ) ) . '</td></tr>';
|
||||
|
|
Loading…
Reference in New Issue