Merge pull request #4134 from scottbasgaard/master
Product->get_title() should be raw format by default. Pass at #4124
This commit is contained in:
commit
792bb6e444
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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