From 873ade0bbcbfdd7e7cb021f7421da38499b77a3c Mon Sep 17 00:00:00 2001 From: Ryan Kanner Date: Thu, 1 Mar 2018 09:50:35 -0700 Subject: [PATCH] support dashes in queue names --- src/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler.php b/src/Handler.php index 7507075..4bd0614 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -37,7 +37,7 @@ public function setup() { public function register_rest_endpoint() { register_rest_route( - self::API_NAMESPACE, '/' . self::ENDPOINT_RUN . '/(?P[\w]+)', [ + self::API_NAMESPACE, '/' . self::ENDPOINT_RUN . '/(?P[\w|-]+)', [ 'methods' => 'PUT', 'callback' => [ $this, 'run_queue_processor' ], 'permission_callback' => [ $this, 'check_rest_permissions' ],