Make WordPress Core

Changeset 51487


Ignore:
Timestamp:
07/26/2021 03:19:32 AM (3 years ago)
Author:
peterwilsoncc
Message:

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.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.