Changeset 52345 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 12/07/2021 10:48:54 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r52291 r52345 104 104 } 105 105 // Path needs to be normalized to work in Windows env. 106 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC );107 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );108 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );106 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC ); 107 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); 108 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); 109 109 110 110 $script_uri = $is_core_block ?
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)