[wp-trac] [WordPress Trac] #53752: Twenty Ten: Block patterns file causes error in child themes

WordPress Trac noreply at wordpress.org
Mon Jul 26 03:19:46 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 fixed-major  |     Focuses:
-----------------------------------+-----------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51487" 51487]:
 {{{
 #!CommitTicketReference repository="" revision="51487"
 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, SergeyBiryukov.
 Merges [51482] to the 5.8 branch.
 Fixes #53752.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53752#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list