Skip to content

Commit

Permalink
Remove editorModule, module support
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 11, 2024
1 parent 2c1856d commit e1e7a44
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ function generate_block_asset_handle( $block_name, $field_name, $index = 0 ) {
}

$field_mappings = array(
'editorModule' => 'editor-module',
'module' => 'module',
'viewModule' => 'view-module',
'editorScript' => 'editor-script',
'script' => 'script',
Expand Down Expand Up @@ -580,8 +578,6 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
}

$module_fields = array(
'editorModule' => 'editor_module_handles',
'module' => 'module_handles',
'viewModule' => 'view_module_handles',
);
foreach ( $module_fields as $metadata_field_name => $settings_field_name ) {
Expand Down

0 comments on commit e1e7a44

Please sign in to comment.