Use wp_unslash() when displaying search string on orders.
This commit is contained in:
parent
faf64a4d96
commit
96fe4aae0b
|
@ -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'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue