From 1bfd57626e27e31a5a8d73d2e841f93d016ef52c Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Fri, 24 Nov 2023 11:34:16 +0000 Subject: [PATCH] Add PATCH list of allowed http methods --- lib/class-wp-rest-oauth1.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/class-wp-rest-oauth1.php b/lib/class-wp-rest-oauth1.php index 1226731..742a709 100644 --- a/lib/class-wp-rest-oauth1.php +++ b/lib/class-wp-rest-oauth1.php @@ -678,6 +678,7 @@ public function check_oauth_signature( $consumer, $oauth_params, $token = null ) case 'POST': case 'PUT': + case 'PATCH': $params = wp_unslash( $_POST ); break; default: