diff --git a/src/wp-includes/collaboration/class-wp-http-polling-sync-server.php b/src/wp-includes/collaboration/class-wp-http-polling-sync-server.php index bc9d208f096be..7f60a3075add1 100644 --- a/src/wp-includes/collaboration/class-wp-http-polling-sync-server.php +++ b/src/wp-includes/collaboration/class-wp-http-polling-sync-server.php @@ -278,6 +278,11 @@ private function can_user_sync_entity_type( string $entity_kind, string $entity_ return isset( $taxonomy->cap->assign_terms ) && current_user_can( $taxonomy->cap->assign_terms ); } + // Handle single comment entities with a defined object ID. + if ( 'root' === $entity_kind && 'comment' === $entity_name && is_numeric( $object_id ) ) { + return current_user_can( 'edit_comment', (int) $object_id ); + } + // All the remaining checks are for collections. If an object ID is provided, // reject the request. if ( null !== $object_id ) {