WordPress.org

Make WordPress Core

Changeset 51482


Ignore:
Timestamp:
07/23/2021 01:12:31 PM (2 months ago)
Author:
SergeyBiryukov
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.
Fixes #53752.

File:
1 edited

Legend:

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