Product->get_title() should be raw format by default. Pass at #4124
This commit is contained in:
parent
d78b4287bf
commit
faf64a4d96
|
@ -422,7 +422,7 @@ class WC_Product {
|
|||
* @return string
|
||||
*/
|
||||
public function get_title() {
|
||||
return apply_filters( 'woocommerce_product_title', apply_filters( 'the_title', $this->post->post_title, $this->id ), $this );
|
||||
return apply_filters( 'woocommerce_product_title', $this->post->post_title, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,7 +64,7 @@ class WC_Product_Simple extends WC_Product {
|
|||
$title = get_the_title( $this->get_parent() ) . ' → ' . $title;
|
||||
}
|
||||
|
||||
return apply_filters( 'woocommerce_product_title', apply_filters( 'the_title', $title, $this->id ), $this );
|
||||
return apply_filters( 'woocommerce_product_title', $title, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue