Skip to content

Releases: Brain-WP/Hierarchy

v3.2.0

02 Dec 18:26
f4ec0ab
Compare
Choose a tag to compare

Fixed

  • The ${type}_template filter is now compatible with arguments passed by the core filter (props @nlemoine)

Changed

  • Improved PHPCS CI
  • Improved PHPUnit CI (props @szepeviktor )

v3.1.2

24 Feb 06:09
Compare
Choose a tag to compare

Fixed

  • Type error due to PHP casting numeric array keys to int (props @nlemoine )

v3.1.1

09 Feb 08:34
Compare
Choose a tag to compare

Changed

  • Improved support for "composed" file extension
  • Improced CI workflow

v3.1.0

08 Feb 10:26
Compare
Choose a tag to compare

Added

  • Branch for "privacy policy" page

Removed

  • Branch for "paged"

v2.7.0

08 Feb 10:25
Compare
Choose a tag to compare

Added

  • Branch for "privacy policy" page

Removed

  • Branch for "paged"

v3.0.0

07 Feb 11:54
Compare
Choose a tag to compare

Changed

  • Classes, interfaces, and traits are renamed:
    • Branch\BranchInterface > Branch\Branch
    • Finder\CallbackTemplateFinder > Finder\ByCallback
    • Finder\FoldersTemplateFinder > Finder\ByFolders
    • Finder\SubfolderTemplateFinder > Finder\BySubfolder
    • Finder\LocalizedTemplateFinder > Finder\Localized
    • Finder\FindFirstTemplateTrait > Finder\FindFirstTrait
    • Finder\TemplateFinderInterface > Finder\TemplateFinder
    • Loader\AggregateTemplateLoaderInterface > Loader\Aggregate
    • Loader\CascadeAggregateTemplateLoader > Loader\Cascade
    • Loader\ExtensionMapTemplateLoader > Loader\ExtensionMap
    • Loader\FileRequireLoader > Loader\FileRequire
    • Loader\TemplateLoaderInterface > Loader\Loader
  • All methods use type declaration for parameters and return values
  • FileExtensionPredicate constructor changed signature. First param type was (undeclared) string|string[] $extensions now is (declared) string ...$extensions

Deprecared

  • Hierarchy::getHierarchy(), replaced by Hierarchy::hierarchy()
  • Hierarchy::getTemplates(), replaced by Hierarchy::templates()

Added

  • Hierarchy::hierarchy()
  • Hierarchy::templates()
  • Support for "composed" file extensions like .html.php
  • GitHub action (replacing Travis) to run:
    • unit tests executed in PHP 7.1 to PHP 8.2
    • static analysys via Psalm
    • PHPCS checks (inluding PHPCompatibility)

Removed

  • QueryTemplateInterface is removed and not replaced by anything

v2.6.0

07 Feb 12:00
fc93082
Compare
Choose a tag to compare

Added

  • is_favicon in QueryTemplate::mainQueryTemplateAllowed(). This means WP min version is 5.4

v2.5.0

14 Oct 20:30
Compare
Choose a tag to compare

Changed

  • Removed support for HHVM and PHP 5.5
  • Tests up to 7.3

v2.4.0

02 Nov 07:39
Compare
Choose a tag to compare

Changed

  • Page template is took into account even when the page has no page name yet
  • Updated documentation
  • Travis checks in PHP 7.1 & 7.2

Added

  • Support for CPT post-templates (See #15)

Fixed

  • Improved compatibility with template file name has UTF-8 characters (Props @slackday)

v2.3.1

28 Dec 17:19
Compare
Choose a tag to compare

Changed

Nothing

Added

Nothing

Fixed

  • Wrong var name in BranchPostTypeArchive . (see #13). Props @binhqx.