diff --git a/src/alley/wp/simplecache/class-metadata-adapter.php b/src/alley/wp/simplecache/class-metadata-adapter.php index f16fe69..8f5ddc2 100644 --- a/src/alley/wp/simplecache/class-metadata-adapter.php +++ b/src/alley/wp/simplecache/class-metadata-adapter.php @@ -80,13 +80,7 @@ public static function for_term( int $term_id ): CacheInterface { public function get( string $key, mixed $default = null ): mixed { $get = $this->getMultiple( [ $key ], $default ); - $out = $default; - - foreach ( $get as $value ) { - $out = $value; - } - - return $out; + return $get[ $key ]; } /**