diff --git a/lib/blocks.php b/lib/blocks.php index 836b622323265e..19cddcb49039c4 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -126,9 +126,7 @@ function gutenberg_add_blocks_to_post_resource( $content ) { // Set up and add the item data. $item_data = array(); $item_data['type'] = $block_name; - if ( null !== $attributes ) { - $item_data['attributes'] = $block['attrs']; - } + $item_data['attributes'] = $attributes; $item_data['content'] = $block['rawContent']; if ( null !== $block['renderedContent'] ) { $item_data['rendered'] = $block['renderedContent'] ;