[wp-trac] [WordPress Trac] #53769: Bundled themes: block-patterns.php file should use `get_template_directory_uri` instead of `get_stylesheet_directory_uri`

WordPress Trac noreply at wordpress.org
Sat Jul 24 12:40:42 UTC 2021


#53769: Bundled themes: block-patterns.php file should use
`get_template_directory_uri` instead of `get_stylesheet_directory_uri`
---------------------------+-----------------------------
 Reporter:  audrasjb       |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.8.1
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51483" 51483]:
 {{{
 #!CommitTicketReference repository="" revision="51483"
 Bundled Themes: Use correct path for loading images in block patterns.

 By using `get_template_directory_uri()` instead of
 `get_stylesheet_directory_uri()`, we make sure to include the images from
 the parent theme.

 This avoids displaying missing images in block patterns when using a child
 theme of Twenty Ten, Twenty Eleven, or Twenty Twelve.

 Follow-up to [51033], [51103], [51106].

 Props audrasjb.
 Fixes #53769.
 }}}

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


More information about the wp-trac mailing list