diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index c4bd8646c7215..6fcf18f747efe 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -63,13 +63,13 @@ function generate_block_asset_handle( $block_name, $field_name, $index = 0 ) { } $field_mappings = array( - 'editorScript' => 'editor-script', - 'editorStyle' => 'editor-style', - 'script' => 'script', - 'style' => 'style', - 'viewScript' => 'view-script', + 'editorScript' => 'editor-script', + 'editorStyle' => 'editor-style', + 'script' => 'script', + 'style' => 'style', + 'viewScript' => 'view-script', 'viewScriptModule' => 'view-script-module', - 'viewStyle' => 'view-style', + 'viewStyle' => 'view-style', ); $asset_handle = str_replace( '/', '-', $block_name ) . '-' . $field_mappings[ $field_name ];