{"id":10224347,"date":"2018-04-27T09:44:48","date_gmt":"2018-04-27T09:44:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-not-https-compliant\/"},"modified":"2018-04-27T09:44:48","modified_gmt":"2018-04-27T09:44:48","slug":"plugin-not-https-compliant","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-not-https-compliant\/","title":{"rendered":"plugin not https compliant"},"content":{"rendered":"<p>Links to avatar image files are always using a http URL, this breaks the security check when using this plugin on a https wordpress site.<\/p>\n<p>I have made the following change in the plugin code to use http or https according to the site configuration :<\/p>\n<pre><code>--- wp-user-avatars\/wp-user-avatars\/includes\/common.php        2018-04-25 08:18:59.000000000 +0200\n+++ wp-user-avatars\/wp-user-avatars\/includes\/common.php        2018-14-26 14:45:58.000000000 +0100\n@@ -343,8 +343,8 @@\n       }\n                                                                                                                                                                         \n       \/\/ URL corrections\n-      if ( &#039;http&#039; !== substr( $user_avatars[ $size ], 0, 4 ) ) {\n-              $user_avatars[ $size ] = home_url( $user_avatars[ $size ] );\n+      if ( &#039;http&#039; == substr( $user_avatars[ $size ], 0, 4 ) ) {\n+              $user_avatars[ $size ] = parse_url($user_avatars[ $size ], PHP_URL_PATH);\n       }\n                                                                                                                                                                         \n       \/\/ Maybe switch back<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-10224347","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10224347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10224347\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10224347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}