Changeset 54415
- Timestamp:
- 10/07/2022 03:44:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r54330 r54415 130 130 131 131 // Path needs to be normalized to work in Windows env. 132 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 132 static $wpinc_path_norm = ''; 133 if ( ! $wpinc_path_norm ) { 134 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 135 } 136 133 137 $theme_path_norm = wp_normalize_path( get_theme_file_path() ); 134 138 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); … … 183 187 } 184 188 185 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 189 static $wpinc_path_norm = ''; 190 if ( ! $wpinc_path_norm ) { 191 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) ); 192 } 186 193 187 194 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );
Note: See TracChangeset
for help on using the changeset viewer.