From dc91f87a74540b7fc94a3fc9b4b43c718f59d948 Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Mon, 5 Sep 2022 11:28:19 +0100 Subject: [PATCH] Query by name. --- packages/block-library/src/template-part/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/template-part/index.php b/packages/block-library/src/template-part/index.php index 882da392f1bd14..107f20dbd35b5e 100644 --- a/packages/block-library/src/template-part/index.php +++ b/packages/block-library/src/template-part/index.php @@ -33,7 +33,7 @@ function render_block_core_template_part( $attributes ) { 'tax_query' => array( array( 'taxonomy' => 'wp_theme', - 'field' => 'slug', + 'field' => 'name', 'terms' => $attributes['theme'], ), ),