From 862bccc206c87695ca751059578a7d69ec5dfb89 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 7 Sep 2017 10:44:59 -0400 Subject: [PATCH] attributes: use $attributes and return even if null --- lib/blocks.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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'] ;