Merge pull request #4134 from scottbasgaard/master

Product->get_title() should be raw format by default. Pass at #4124
This commit is contained in:
Coen Jacobs 2013-11-19 01:02:18 -08:00
commit 792bb6e444
3 changed files with 3 additions and 3 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

@ -591,7 +591,7 @@ class WC_Admin_CPT_Shop_Order extends WC_Admin_CPT {
if ( $typenow != 'shop_order' ) return $query;
if ( ! get_query_var( 'shop_order_search' ) ) return $query;
return $_GET['s'];
return wp_unslash( $_GET['s'] );
}
/**

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