Make WordPress Core


Ignore:
Timestamp:
11/11/2022 04:32:51 PM (16 months ago)
Author:
desrosj
Message:

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.

See #57057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/template-part.php

    r54817 r54819  
    2323        isset( $attributes['slug'] ) &&
    2424        isset( $attributes['theme'] ) &&
    25         get_stylesheet() === $attributes['theme']
     25        wp_get_theme()->get_stylesheet() === $attributes['theme']
    2626    ) {
    2727        $template_part_id    = $attributes['theme'] . '//' . $attributes['slug'];
Note: See TracChangeset for help on using the changeset viewer.