diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php index 3837a0a17d..bef49341d7 100644 --- a/wp-includes/blocks/template-part.php +++ b/wp-includes/blocks/template-part.php @@ -22,7 +22,7 @@ function render_block_core_template_part( $attributes ) { if ( isset( $attributes['slug'] ) && isset( $attributes['theme'] ) && - get_stylesheet() === $attributes['theme'] + wp_get_theme()->get_stylesheet() === $attributes['theme'] ) { $template_part_id = $attributes['theme'] . '//' . $attributes['slug']; $template_part_query = new WP_Query( diff --git a/wp-includes/version.php b/wp-includes/version.php index fcdc7dd2d0..14fd5a23d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54817'; +$wp_version = '6.2-alpha-54819'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.