Skip to content

Commit

Permalink
Add PATCH list of allowed http methods (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnynews authored Nov 24, 2023
1 parent 0a2901b commit cd68b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/class-wp-rest-oauth1.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd68b09

Please sign in to comment.