Changeset 59079 for trunk/src/wp-includes/blocks/file.php
- Timestamp:
- 09/23/2024 06:50:27 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/file.php
r59072 r59079 20 20 // If it's interactive, enqueue the script module and add the directives. 21 21 if ( ! empty( $attributes['displayPreview'] ) ) { 22 $suffix = wp_scripts_get_suffix(); 23 if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) { 24 $module_url = gutenberg_url( '/build-module/block-library/file/view.min.js' ); 25 } 26 27 wp_register_script_module( 28 '@wordpress/block-library/file', 29 isset( $module_url ) ? $module_url : includes_url( "blocks/file/view{$suffix}.js" ), 30 array( '@wordpress/interactivity' ), 31 defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' ) 32 ); 33 wp_enqueue_script_module( '@wordpress/block-library/file' ); 22 wp_enqueue_script_module( '@wordpress/block-library/file/view' ); 34 23 35 24 $processor = new WP_HTML_Tag_Processor( $content );
Note: See TracChangeset
for help on using the changeset viewer.