Make WordPress Core

Changeset 54820 for branches/6.1


Ignore:
Timestamp:
11/11/2022 04:38:03 PM (2 years 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.

Merges [54819] to the 6.1 branch.
See #57057.

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

  • branches/6.1/src/wp-includes/blocks/template-part.php

    r54818 r54820  
    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.