Changeset 53211
- Timestamp:
- 04/19/2022 09:56:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r53197 r53211 114 114 $is_theme_block = 0 === strpos( $script_path_norm, $theme_path_norm ); 115 115 116 $script_uri ;116 $script_uri = plugins_url( $script_path, $metadata['file'] ); 117 117 if ( $is_core_block ) { 118 118 $script_uri = includes_url( str_replace( $wpinc_path_norm, '', $script_path_norm ) ); 119 119 } elseif ( $is_theme_block ) { 120 120 $script_uri = get_theme_file_uri( str_replace( $theme_path_norm, '', $script_path_norm ) ); 121 } else {122 $script_uri = plugins_url( $script_path, $metadata['file'] );123 121 } 124 122
Note: See TracChangeset
for help on using the changeset viewer.