From 0e37501936d714d6c8b1567fec0b61481ea22e22 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Tue, 30 Jul 2024 14:29:17 -0400 Subject: [PATCH] Fix return value of get_taxonomy_object_types --- CHANGELOG.md | 4 ++++ .../database/model/registration/trait-register-taxonomy.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20185611..3541ebb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Fixed + +- Fixed an issue with taxonomy registration not returning an array. + ### Changed - Added support for faking specific HTTP requests by method. diff --git a/src/mantle/database/model/registration/trait-register-taxonomy.php b/src/mantle/database/model/registration/trait-register-taxonomy.php index 5640bca1..99241389 100644 --- a/src/mantle/database/model/registration/trait-register-taxonomy.php +++ b/src/mantle/database/model/registration/trait-register-taxonomy.php @@ -66,7 +66,7 @@ protected static function get_taxonomy_object_types(): array { } } - return $object_types; + return static::$object_types; } /**