Skip to content

Commit

Permalink
Allow no type
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 13, 2024
1 parent 61ddb8b commit 904a28e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Gutenberg_REST_Comment_Controller_6_8 extends WP_REST_Comments_Controller {

public function create_item_permissions_check( $request ) {
if ( 'comment' === $request['type'] ) {
if ( empty( $request['comment_type'] ) || 'comment' === $request['comment_type'] ) {
return parent::create_item_permissions_check( $request );
}

Expand Down

0 comments on commit 904a28e

Please sign in to comment.