Skip to content

Commit 5937d1a

Browse files
author
Adam Silverstein
committed
use already set up $block_name
1 parent d990979 commit 5937d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function gutenberg_add_blocks_to_post_resource( $content ) {
125125

126126
// Set up and add the item data.
127127
$item_data = array();
128-
$item_data['type'] = $block['blockName'];
128+
$item_data['type'] = $block_name;
129129
if ( null !== $attributes ) {
130130
$item_data['attributes'] = $block['attrs'];
131131
}

0 commit comments

Comments
 (0)