From 163af89ab3a1cd56bdc862ada6b64086a9db7aa3 Mon Sep 17 00:00:00 2001 From: haszari Date: Fri, 22 Feb 2019 12:34:43 +1300 Subject: [PATCH] MIA suggestions data should be cached as a real array, not text --- .../class-wc-marketplace-suggestions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php b/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php index b60541c8028..e4edb639834 100644 --- a/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php +++ b/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php @@ -153,7 +153,7 @@ class WC_Marketplace_Suggestions { } // Cache empty suggestions data to reduce requests if there are any issues with API. - set_transient( 'wc_marketplace_suggestions', '[]', DAY_IN_SECONDS ); + set_transient( 'wc_marketplace_suggestions', array(), DAY_IN_SECONDS ); return array(); } }