fix php strict error, reference passing

This commit is contained in:
Martin Schuette 2014-06-06 13:48:05 +00:00
parent 55a3637adf
commit 365b483f03

View file

@ -24,7 +24,8 @@ class FF_Meta_Externaldata
// Caching
if ( false === ( $data = get_transient($cachekey) ) ) {
$json = wp_remote_retrieve_body(wp_remote_get($url));
$http_response = wp_remote_get($url);
$json = wp_remote_retrieve_body($http_response);
$data = json_decode ($json, $assoc = true);
set_transient( $cachekey, $data, $cachetime );
}