fix php strict error, reference passing
This commit is contained in:
parent
55a3637adf
commit
365b483f03
|
@ -24,7 +24,8 @@ class FF_Meta_Externaldata
|
||||||
|
|
||||||
// Caching
|
// Caching
|
||||||
if ( false === ( $data = get_transient($cachekey) ) ) {
|
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);
|
$data = json_decode ($json, $assoc = true);
|
||||||
set_transient( $cachekey, $data, $cachetime );
|
set_transient( $cachekey, $data, $cachetime );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue