CART: Order projects #25

Merged
akrdzic merged 10 commits from order-projects into master 2018-09-26 16:13:05 +02:00
Showing only changes of commit 12805678b1 - Show all commits

View File

@@ -29,7 +29,7 @@ class Wiaas_Order_Projects_API {
'type' => 'string',
'description' => __( 'Order project name.', 'wiaas' ),
'required' => true,
'sanitize_callback' => 'sanitize_title',
'sanitize_callback' => 'sanitize_text_field',
'validate_callback' => function($param, $request, $key) {
if ($param === '') {
return new WP_Error(