Product->get_title() should be raw format by default. Pass at #4124

This commit is contained in:
Scott Basgaard 2013-11-18 16:03:32 +01:00
parent d78b4287bf
commit faf64a4d96
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**

View File

@ -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 );
}
/**