Changeset 57677
- Timestamp:
- 02/21/2024 11:18:34 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r57675 r57677 173 173 $module_asset = ! empty( $module_asset_path ) ? require $module_asset_path : array(); 174 174 $module_dependencies = isset( $module_asset['dependencies'] ) ? $module_asset['dependencies'] : array(); 175 $block_version = isset( $metadata['version'] ) ? $metadata['version'] : false; 176 $module_version = isset( $module_asset['version'] ) ? $module_asset['version'] : $block_version; 175 177 176 178 wp_register_script_module( … … 178 180 $module_uri, 179 181 $module_dependencies, 180 isset( $module_asset['version'] ) ? $module_asset['version'] : false182 $module_version 181 183 ); 182 184 … … 226 228 227 229 // Asset file for blocks is optional. See https://core.trac.wordpress.org/ticket/60460. 228 $script_asset = ! empty( $script_asset_path ) ? require $script_asset_path : array();230 $script_asset = ! empty( $script_asset_path ) ? require $script_asset_path : array(); 229 231 $script_handle = isset( $script_asset['handle'] ) ? 230 232 $script_asset['handle'] :
Note: See TracChangeset
for help on using the changeset viewer.