Releases: Brain-WP/Hierarchy
Releases · Brain-WP/Hierarchy
v2.3.0
Changed
- Hierarchy branches array is now an associative array to easier filtering
- Updated README
Added
EmbedBranch
, for templates of ais_embed()
query- Filter
brain.hierarchy.branches
to customize the whole branches array - Core filter (WP 4.7+)
{$type}_template_hierarchy
to filter specific branch template candidates - Hierachy class constructor to accept flags, along with
FILTERABLE
andNOT_FILTERABLE
class constants to be used as flags
Fixed
- Front page branch "type" is changed to
frontpage
(it wasfront_page
) for core compatibility. It is used as dynamic part in hooks{$type}_template
and{$type}_template_hierarchy
- Single branch was not in pair with core. Now it is, including upcoming changes in WP 4.7
- Edge case core compatibily issue in
PageBranch
- Code style issues
v2.2.1
v2.2.0
Changed
FoldersTemplateFinder
andSubfolderTemplateFinder
now support more file extensions (see #2. prop @schlessera)
Added
- Aggregate loaders (see #1, prop @schlessera ):
AggregateTemplateLoaderInterface
,CascadeAggregateTemplateLoader
andExtensionMapTemplateLoader
FileExtensionPredicate
(mainly helper forExtensionMapTemplateLoader
)
Fixed
nothing