From 1a4a2b1530cb3d7c2cbfdf23cf9ccd9702042650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Fri, 28 Aug 2020 18:17:06 +0200 Subject: [PATCH 1/3] Use textarea instead of block preview --- lib/class-wp-widget-block.php | 14 +------------- lib/widgets-page.php | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/class-wp-widget-block.php b/lib/class-wp-widget-block.php index 97b44eaa287e56..99a99ca0312fbd 100644 --- a/lib/class-wp-widget-block.php +++ b/lib/class-wp-widget-block.php @@ -175,20 +175,8 @@ public function update( $new_instance, $old_instance ) { */ public function form( $instance ) { $instance = wp_parse_args( (array) $instance, $this->default_instance ); - echo do_blocks( $instance['content'] ); - $textarea_id = $this->get_field_id( 'content' ); ?> -
- - + Date: Tue, 15 Sep 2020 13:13:36 +0200 Subject: [PATCH 2/3] Set rows and cols on + Date: Tue, 15 Sep 2020 13:16:59 +0200 Subject: [PATCH 3/3] Use wp-block-widget-textarea class --- lib/class-wp-widget-block.php | 2 +- lib/widgets-page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class-wp-widget-block.php b/lib/class-wp-widget-block.php index 2e5d78546e21f2..b5fbe90c2162ef 100644 --- a/lib/class-wp-widget-block.php +++ b/lib/class-wp-widget-block.php @@ -176,7 +176,7 @@ public function update( $new_instance, $old_instance ) { public function form( $instance ) { $instance = wp_parse_args( (array) $instance, $this->default_instance ); ?> - +