Filter template hierarchy for embed templates (#2145)

This commit is contained in:
Matt Mirus
2019-01-15 19:42:00 -05:00
committed by QWp6t
parent 899ceac132
commit 19057f60be

View File

@@ -38,7 +38,7 @@ add_filter('excerpt_more', function () {
*/
collect([
'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment'
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});