From 1b26700ca5664a54d6a050bfc917be1b12002da4 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Fri, 22 May 2026 14:37:08 +0300 Subject: [PATCH] Ensure the correct cache type Ignore legacy cache values of class instances Signed-off-by: Kaspars Dambis --- inc/packages/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/packages/namespace.php b/inc/packages/namespace.php index 28ee8886..3918688a 100644 --- a/inc/packages/namespace.php +++ b/inc/packages/namespace.php @@ -155,7 +155,7 @@ function get_did_document( string $id ) { } $cached = get_site_transient( CACHE_METADATA_DOCUMENTS . $id ); - if ( $cached ) { + if ( $cached && is_array( $cached ) ) { return $cached; }