diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
index 49f18ca46f8f..0abbfd3a9705 100644
a
|
b
|
function register_block_script_handle( $metadata, $field_name, $index = 0 ) { |
134 | 134 | $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); |
135 | 135 | } |
136 | 136 | |
137 | | $theme_path_norm = wp_normalize_path( get_theme_file_path() ); |
| 137 | $theme_path_norm = wp_normalize_path( realpath( get_theme_file_path() ) ); |
138 | 138 | $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); |
139 | 139 | |
140 | 140 | $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); |