mirror of
git://develop.git.wordpress.org/
synced 2025-04-08 14:13:27 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/branches/6.1@54820 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4344bdeb54
commit
d8712695cb
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user