[wp-trac] [WordPress Trac] #53769: Bundled themes: block-patterns.php file should use `get_template_directory_uri` instead of `get_stylesheet_directory_uri`
WordPress Trac
noreply at wordpress.org
Mon Jul 26 03:23:17 UTC 2021
#53769: Bundled themes: block-patterns.php file should use
`get_template_directory_uri` instead of `get_stylesheet_directory_uri`
-----------------------------------+-----------------------------
Reporter: audrasjb | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8.1
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major | Focuses:
-----------------------------------+-----------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"51488" 51488]:
{{{
#!CommitTicketReference repository="" revision="51488"
Bundled Themes: Use correct path for loading images in block patterns.
By using `get_template_directory_uri()` instead of
`get_stylesheet_directory_uri()`, we make sure to include the images from
the parent theme.
This avoids displaying missing images in block patterns when using a child
theme of Twenty Ten, Twenty Eleven, or Twenty Twelve.
Follow-up to [51033], [51103], [51106].
Props audrasjb, SergeyBiryukov.
Merges [51483] to the 5.8 branch.
Fixes #53769.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53769#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list