Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 5cae90d

Browse files
1 parent d3237cc commit 5cae90d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/classes/models/custom_post/setting.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ protected function filter_post_field(
297297
$key, $value, $default, $post_array
298298
) {
299299
if ( 'is_valid_button_block_editor' === $key ) {
300-
return $this->app->input->post( $this->get_post_field_name( 'is_valid_button' ) );
300+
if ( ! $this->app->utility->can_use_block_editor() ) {
301+
return $this->app->input->post( $this->get_post_field_name( 'is_valid_button' ) );
302+
}
301303
}
302304

303305
return $value;

0 commit comments

Comments
 (0)