summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-wp-block-list.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/class-wp-block-list.php')
-rw-r--r--wp-includes/class-wp-block-list.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/class-wp-block-list.php b/wp-includes/class-wp-block-list.php
index 4e30f1c..e1151e6 100644
--- a/wp-includes/class-wp-block-list.php
+++ b/wp-includes/class-wp-block-list.php
@@ -93,7 +93,8 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
$block = $this->blocks[ $offset ];
if ( isset( $block ) && is_array( $block ) ) {
- $block = new WP_Block( $block, $this->available_context, $this->registry );
+ $block = new WP_Block( $block, $this->available_context, $this->registry );
+
$this->blocks[ $offset ] = $block;
}