From 904a28e1399195d26629cb2ba0a44c4d19c28361 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 13 Nov 2024 18:30:54 +0100 Subject: [PATCH] Allow no type --- .../class-gutenberg-rest-comment-controller-6-8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php b/lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php index 140141976adb6..60b45b1a63ade 100644 --- a/lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php +++ b/lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php @@ -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 ); }