We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d8338 commit f7abb22Copy full SHA for f7abb22
packages/block-library/src/template-part/index.php
@@ -19,7 +19,7 @@ function render_block_core_template_part( $attributes ) {
19
// If we have a post ID and the post exists, which means this template part
20
// is user-customized, render the corresponding post content.
21
$content = get_post( $attributes['postId'] )->post_content;
22
- } elseif ( isset( $attributes['theme'] ) && basename( wp_get_theme()->get_stylesheet() ) === $attributes['theme'] ) {
+ } elseif ( isset( $attributes['theme'] ) && wp_get_theme()->get_stylesheet() === $attributes['theme'] ) {
23
$template_part_query = new WP_Query(
24
array(
25
'post_type' => 'wp_template_part',
0 commit comments