Changeset 52330 for trunk/src/wp-includes/theme.php
- Timestamp:
- 12/07/2021 12:00:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r52256 r52330 4091 4091 * @return boolean Whether the current theme is a block-based theme or not. 4092 4092 */ 4093 function wp_is_block_template_theme() { 4094 return is_readable( get_theme_file_path( '/block-templates/index.html' ) ) || 4095 is_readable( get_theme_file_path( '/templates/index.html' ) ); 4096 } 4093 function wp_is_block_theme() { 4094 return wp_get_theme()->is_block_theme(); 4095 }
Note: See TracChangeset
for help on using the changeset viewer.