Skip to content

Commit

Permalink
Always attach blocks, even if null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Sep 7, 2017
1 parent 8340341 commit 957dc7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 957dc7e

Please sign in to comment.