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

WordPress Trac noreply at wordpress.org
Thu Jul 22 19:31:36 UTC 2021


#53752: Twenty Ten: Block patterns file causes error in child themes
---------------------------+--------------------
 Reporter:  ryelle         |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.8.1
Component:  Bundled Theme  |    Version:  5.8
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+--------------------
 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'

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


More information about the wp-trac mailing list