From 957dc7e5e8d2ee8dc8e459986b6c3df500ffde54 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 7 Sep 2017 11:11:18 -0400 Subject: [PATCH] Always attach blocks, 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 8d95d4a8f25beb..b124357ffbb403 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -170,8 +170,6 @@ function attach_block_data_to_post_response( $response, $post ) { return $response; } $blocks = gutenberg_add_blocks_to_post_resource( $post->post_content ); - if ( $blocks ) { - $response->data['content']['blocks'] = $blocks; - } + $response->data['content']['blocks'] = $blocks; return $response; }