Remove duplicate sanitizing

This commit is contained in:
claudiulodro 2018-11-28 09:35:59 -08:00
parent 2bccd4899a
commit 5d0d275bec
1 changed files with 0 additions and 3 deletions

View File

@ -481,9 +481,6 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller {
}
}
break;
case 'payment_method_title' :
$order->set_payment_method_title( sanitize_text_field( $value ) );
break;
default :
if ( is_callable( array( $order, "set_{$key}" ) ) ) {
$order->{"set_{$key}"}( $value );