Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use less memory
  • Loading branch information
oandregal committed Oct 10, 2022
commit 83da1ad6096c106c701fb574c0d30664125b09c1
4 changes: 3 additions & 1 deletion src/wp-includes/class-wp-theme-json-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ protected static function has_same_registered_blocks( $origin ) {
return true;
}

static::$blocks_cache[ $origin ] = $blocks;
foreach( $blocks as $block_name => $block_type ) {
static::$blocks_cache[ $origin ][ $block_name ] = true;
}

return false;
}
Expand Down