#53752 closed defect (bug) (fixed)
Twenty Ten: Block patterns file causes error in child themes
Reported by: | ryelle | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.8.1 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Bundled Theme | Keywords: | has-patch fixed-major |
Focuses: | Cc: |
Description
In Twenty Ten, the block-patterns.php
file is loaded using the get_stylesheet_directory
path. When there's a child theme of Twenty Ten, this uses the child theme's folder, but it's unlikely that the child theme has this file. This causes a fatal error, for example:
require(): Failed opening required '/wp-content/themes/wordcamp-central-2012/block-patterns.php' in '/wp-content/themes/twentyten/functions.php:743'
Attachments (1)
Change History (9)
#2
@
3 years ago
Each of the other ten bundled themes uses the template directory:
require get_template_directory() . '/inc/block-patterns.php';
#4
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 51482:
#5
@
3 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.8 branch.
This ticket was mentioned in Slack in #core-themes by peterwilsoncc. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
The changeset was [51106]