This PR solves #221. It allows a child theme to override a pattern by including a file at the same location. This way, updates to the other patterns would still be preserved.
Testing Instructions
Ensure all the patterns still load as expected in TT2.
Bonus:
Create a twentytwentytwo child theme and activate it
Add a pattern with the same name (e.g. inc/pattern/footer-default.php)
Change something in the pattern, go to the post editor, ensure the editor loads the child theme's version of the pattern.
Description
This PR solves #221. It allows a child theme to override a pattern by including a file at the same location. This way, updates to the other patterns would still be preserved.
Testing Instructions
Ensure all the patterns still load as expected in TT2.
Bonus:
inc/pattern/footer-default.php
)