Changeset 53019 for branches/5.9
- Timestamp:
- 03/29/2022 03:41:42 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/blocks.php
r52748 r53019 104 104 } 105 105 // Path needs to be normalized to work in Windows env. 106 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC);106 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 107 107 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); 108 108 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); … … 146 146 return false; 147 147 } 148 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC);148 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 149 149 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); 150 150 if ( $is_core_block && ! wp_should_load_separate_core_block_assets() ) { … … 240 240 return false; 241 241 } 242 $metadata['file'] = wp_normalize_path( $metadata_file);242 $metadata['file'] = wp_normalize_path( realpath( $metadata_file ) ); 243 243 244 244 /**
Note: See TracChangeset
for help on using the changeset viewer.