Changeset 56455 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 08/24/2023 07:36:16 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r56403 r56455 155 155 $is_theme_block = ( $is_parent_theme_block || $is_child_theme_block ); 156 156 157 $script_uri = plugins_url( $script_path, $metadata['file'] );157 $script_uri = ''; 158 158 if ( $is_core_block ) { 159 159 $script_uri = includes_url( str_replace( $wpinc_path_norm, '', $script_path_norm ) ); … … 163 163 ? get_theme_file_uri( str_replace( $template_path_norm, '', $script_path_norm ) ) 164 164 : get_theme_file_uri( str_replace( $stylesheet_path_norm, '', $script_path_norm ) ); 165 } else { 166 // Fallback to plugins_url(). 167 $script_uri = plugins_url( $script_path, $metadata['file'] ); 165 168 } 166 169
Note: See TracChangeset
for help on using the changeset viewer.