From 3648fb151d09e72c3cbdaf723a8b506e1fba2c68 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:47:14 -0700 Subject: [PATCH] Fix #146 replace deprecated value attribute with inner blocks --- src/blocks/filter/index.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/blocks/filter/index.js b/src/blocks/filter/index.js index 0cb4c04..762376d 100644 --- a/src/blocks/filter/index.js +++ b/src/blocks/filter/index.js @@ -23,11 +23,26 @@ export const settings = { innerBlocks: [ { name: 'core/list', - attributes: { - values: __( - '
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • ' - ), - }, + innerBlocks: [ + { + name: 'core/list-item', + attributes: { + content: __( 'Alice.' ), + }, + }, + { + name: 'core/list-item', + attributes: { + content: __( 'The White Rabbit.' ), + }, + }, + { + name: 'core/list-item', + attributes: { + content: __( 'The Cheshire Cat.' ), + }, + }, + ], }, ], },