Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
Update $supported_blocks variable name
  • Loading branch information
SantosGuillamot committed Feb 13, 2024
commit 9252a376bf40301439d2a79b2f1ebe034e839abb
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ function ( $uses_context, $block_type ) use ( $source ) {
add_filter(
'register_block_type_args',
function ( $args, $block_name ) use ( $source ) {
$allowed_blocks = $this->allowed_blocks;
$supported_blocks = $this->supported_blocks;

if ( empty( $allowed_blocks[ $block_name ] ) || empty( $source->uses_context ) ) {
if ( empty( $supported_blocks[ $block_name ] ) || empty( $source->uses_context ) ) {
return $args;
}
$original_use_context = isset( $args['uses_context'] ) ? $args['uses_context'] : array();
Expand Down