MIA suggestions data should be cached as a real array, not text

This commit is contained in:
haszari 2019-02-22 12:34:43 +13:00
parent 62d4b5e395
commit 163af89ab3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}