Opened 4 years ago
Closed 4 years ago
#53769 closed defect (bug) (fixed)
Bundled themes: block-patterns.php file should use `get_template_directory_uri` instead of `get_stylesheet_directory_uri`
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.8.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch fixed-major |
Focuses: | Cc: |
Description
Related: #53752
In Bundled Themes, the block-patterns.php
file should use get_template_directory_uri
instead of get_stylesheet_directory_uri
to avoid issues with child themes.
Attachments (2)
Change History (10)
#3
@
4 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 51483:
#4
@
4 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.8 branch.
#5
@
4 years ago
[51483] looks good to me for merging in to the 5.8 branch.
As fatal errors are quite bad, I think version bumps should be committed on this ticket and quick turnaround releases done with a single fix for the affected themes.
#6
@
4 years ago
- Twenty Ten becomes 3.5
- Twenty Eleven becomes 3.9
- Twenty Twelve becomes 3.5
Bumps in readme and style.css; change log added to readme (todo: codex update).
This ticket was mentioned in Slack in #core-themes by peterwilsoncc. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
Good catch!
Twenty Ten, Twenty Eleven, and Twenty Twelve appear to be the only affected themes. The rest are already using
get_template_directory_uri()
for images ininc/block-patterns.php
.