From d5b6270d113f137a85b3d99e59c55029858c871c Mon Sep 17 00:00:00 2001
From: Piotr Potrebka <piotr.potrebka@wpdesk.net>
Date: Tue, 24 Jan 2023 11:39:14 +0100
Subject: [PATCH] fix: get_name

---
 templates/wp-editor.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/wp-editor.php b/templates/wp-editor.php
index 4554274..90576aa 100644
--- a/templates/wp-editor.php
+++ b/templates/wp-editor.php
@@ -8,7 +8,7 @@
 wp_print_styles( 'media-views' );
 
 $default_settings = [
-	'textarea_name' => esc_attr( $name_prefix ) . '[' . esc_attr( $this->get_name() ) . ']',
+	'textarea_name' => esc_attr( $name_prefix ) . '[' . esc_attr( $field->get_name() ) . ']',
 	'tinymce'       => [
 		'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink,undo,redo',
 		'toolbar2' => '',
-- 
GitLab