FIX for displaying avatar pictures
-
In file rw_gplaces.php about line 794+, replace this code
if (isset($item['author_url'])) { $request_url = add_query_arg(array('alt'=>'json'), 'https://picasaweb.google.com/data/entry/api/user/ $response = wp_remote_get($request_url); $body = json_decode(wp_remote_retrieve_body($response), true); $avatar_url = preg_replace( "/^http:/i", "https:", $body['entry']['gphoto$thumbnail']['$t']); } else { $avatar_url = false; }
with
$avatar_url = isset($item['profile_photo_url']) ? $item['profile_photo_url'] : null;
- The topic ‘FIX for displaying avatar pictures’ is closed to new replies.