Changeset 49850 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 12/21/2020 11:37:30 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r49695 r49850 72 72 */ 73 73 function generate_block_asset_handle( $block_name, $field_name ) { 74 if ( 0 === strpos( $block_name, 'core/' ) ) { 75 $asset_handle = str_replace( 'core/', 'wp-block-', $block_name ); 76 if ( 0 === strpos( $field_name, 'editor' ) ) { 77 $asset_handle .= '-editor'; 78 } 79 return $asset_handle; 80 } 81 74 82 $field_mappings = array( 75 83 'editorScript' => 'editor-script',
Note: See TracChangeset
for help on using the changeset viewer.