Themes: Revert one instance of `wp_get_theme()` from [54817].

Since this specific call to `wp_get_theme()` is found within `wp-includes/blocks`, this change will need to be made upstream in the Gutenberg repository.

Merges [54819] to the 6.1 branch.
See #57057.
Built from https://develop.svn.wordpress.org/branches/6.1@54820


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2022-11-11 16:40:11 +00:00
parent 726dfff138
commit 5a6761f54f
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1.1-alpha-54818';
$wp_version = '6.1.1-alpha-54820';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.