Changeset 59079 for trunk/src/wp-includes/blocks/image.php
- Timestamp:
- 09/23/2024 06:50:27 AM (16 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/image.php
r59072 r59079 71 71 true === $lightbox_settings['enabled'] 72 72 ) { 73 $suffix = wp_scripts_get_suffix(); 74 if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) { 75 $module_url = gutenberg_url( '/build-module/block-library/image/view.min.js' ); 76 } 77 78 wp_register_script_module( 79 '@wordpress/block-library/image', 80 isset( $module_url ) ? $module_url : includes_url( "blocks/image/view{$suffix}.js" ), 81 array( '@wordpress/interactivity' ), 82 defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' ) 83 ); 84 85 wp_enqueue_script_module( '@wordpress/block-library/image' ); 73 wp_enqueue_script_module( '@wordpress/block-library/image/view' ); 86 74 87 75 /*
Note: See TracChangeset
for help on using the changeset viewer.