- Timestamp:
- 03/16/2022 10:20:12 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r52793 r52939 108 108 } 109 109 // Path needs to be normalized to work in Windows env. 110 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC);110 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 111 111 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); 112 112 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); … … 150 150 return false; 151 151 } 152 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC);152 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 153 153 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); 154 154 if ( $is_core_block && ! wp_should_load_separate_core_block_assets() ) { … … 244 244 return false; 245 245 } 246 $metadata['file'] = wp_normalize_path( $metadata_file);246 $metadata['file'] = wp_normalize_path( realpath( $metadata_file ) ); 247 247 248 248 /**
Note: See TracChangeset
for help on using the changeset viewer.