Changeset 54998
- Timestamp:
- 12/15/2022 10:53:43 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r54916 r54998 352 352 } 353 353 354 $theme_data = WP_Theme_JSON_Resolver::get_theme_data( )->get_custom_templates();354 $theme_data = WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_custom_templates(); 355 355 if ( isset( $theme_data[ $template_item['slug'] ] ) ) { 356 356 $template_item['title'] = $theme_data[ $template_item['slug'] ]['title']; … … 372 372 function _add_block_template_part_area_info( $template_info ) { 373 373 if ( WP_Theme_JSON_Resolver::theme_has_support() ) { 374 $theme_data = WP_Theme_JSON_Resolver::get_theme_data( )->get_template_parts();374 $theme_data = WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_template_parts(); 375 375 } 376 376
Note: See TracChangeset
for help on using the changeset viewer.