From 19057f60be1a5ecc466b2a0a1cb0eca0d367bb6e Mon Sep 17 00:00:00 2001 From: Matt Mirus Date: Tue, 15 Jan 2019 19:42:00 -0500 Subject: [PATCH] Filter template hierarchy for embed templates (#2145) --- app/filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/filters.php b/app/filters.php index 9eccb85..936c1a5 100644 --- a/app/filters.php +++ b/app/filters.php @@ -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'); });