Changeset 55910
- Timestamp:
- 06/13/2023 11:44:14 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r55822 r55910 327 327 $file_or_folder; 328 328 329 if ( ! file_exists( $metadata_file ) ) { 329 $is_core_block = str_starts_with( $file_or_folder, ABSPATH . WPINC ); 330 331 if ( ! $is_core_block && ! file_exists( $metadata_file ) ) { 330 332 return false; 331 333 } … … 333 335 // Try to get metadata from the static cache for core blocks. 334 336 $metadata = false; 335 if ( str_starts_with( $file_or_folder, ABSPATH . WPINC )) {337 if ( $is_core_block ) { 336 338 $core_block_name = str_replace( ABSPATH . WPINC . '/blocks/', '', $file_or_folder ); 337 339 if ( ! empty( $core_blocks_meta[ $core_block_name ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.