Changeset 59938 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 03/05/2025 10:15:09 PM (12 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r59874 r59938 446 446 */ 447 447 448 $file_or_folder = wp_normalize_path( $file_or_folder ); 449 448 450 $metadata_file = ( ! str_ends_with( $file_or_folder, 'block.json' ) ) ? 449 451 trailingslashit( $file_or_folder ) . 'block.json' : 450 452 $file_or_folder; 451 453 452 $is_core_block = str_starts_with( $file_or_folder, ABSPATH . WPINC);454 $is_core_block = str_starts_with( $file_or_folder, wp_normalize_path( ABSPATH . WPINC ) ); 453 455 $metadata_file_exists = $is_core_block || file_exists( $metadata_file ); 454 456 $registry_metadata = WP_Block_Metadata_Registry::get_metadata( $file_or_folder );
Note: See TracChangeset
for help on using the changeset viewer.