Changeset 52334
- Timestamp:
- 12/07/2021 04:31:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r52330 r52334 1251 1251 1252 1252 if ( current_theme_supports( 'block-templates' ) ) { 1253 $block_templates = get_block_templates( array(), 'wp_template' );1254 1253 foreach ( get_post_types( array( 'public' => true ) ) as $type ) { 1254 $block_templates = get_block_templates( array( 'post_type' => $type ), 'wp_template' ); 1255 1255 foreach ( $block_templates as $block_template ) { 1256 1256 $post_templates[ $type ][ $block_template->slug ] = $block_template->title;
Note: See TracChangeset
for help on using the changeset viewer.