[wp-trac] [WordPress Trac] #53752: Twenty Ten: Block patterns file causes error in child themes
WordPress Trac
noreply at wordpress.org
Fri Jul 23 13:12:47 UTC 2021
#53752: Twenty Ten: Block patterns file causes error in child themes
---------------------------+-----------------------------
Reporter: ryelle | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8.1
Component: Bundled Theme | Version: 5.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51482" 51482]:
{{{
#!CommitTicketReference repository="" revision="51482"
Twenty Ten: Use correct path for loading block patterns.
By using `get_template_directory()` instead of
`get_stylesheet_directory()`, we make sure to include the `block-
patterns.php` file from the parent theme.
This avoids a PHP fatal error when using a child theme of Twenty Ten.
Follow-up to [51106].
Props ryelle, sabernhardt, loranrendel.
Fixes #53752.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53752#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list