Changeset 56849 for trunk/src/wp-includes/blocks/template-part.php
- Timestamp:
- 10/12/2023 01:55:27 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/template-part.php
r56710 r56849 19 19 $content = null; 20 20 $area = WP_TEMPLATE_PART_AREA_UNCATEGORIZED; 21 22 if ( 23 isset( $attributes['slug'] ) && 24 isset( $attributes['theme'] ) && 25 get_stylesheet() === $attributes['theme'] 26 ) { 27 $template_part_id = $attributes['theme'] . '//' . $attributes['slug']; 21 $theme = isset( $attributes['theme'] ) ? $attributes['theme'] : get_stylesheet(); 22 23 if ( isset( $attributes['slug'] ) && get_stylesheet() === $theme ) { 24 $template_part_id = $theme . '//' . $attributes['slug']; 28 25 $template_part_query = new WP_Query( 29 26 array( … … 35 32 'taxonomy' => 'wp_theme', 36 33 'field' => 'name', 37 'terms' => $ attributes['theme'],34 'terms' => $theme, 38 35 ), 39 36 ),
Note: See TracChangeset
for help on using the changeset viewer.