Title: plugin not https compliant
Last modified: April 27, 2018

---

# plugin not https compliant

 *  [Rene](https://wordpress.org/support/users/rgc2000/)
 * (@rgc2000)
 * [8 years ago](https://wordpress.org/support/topic/plugin-not-https-compliant/)
 * 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.
 * I have made the following change in the plugin code to use http or https according
   to the site configuration :
 *     ```
       --- wp-user-avatars/wp-user-avatars/includes/common.php        2018-04-25 08:18:59.000000000 +0200
       +++ wp-user-avatars/wp-user-avatars/includes/common.php        2018-14-26 14:45:58.000000000 +0100
       @@ -343,8 +343,8 @@
              }
   
              // URL corrections
       -      if ( 'http' !== substr( $user_avatars[ $size ], 0, 4 ) ) {
       -              $user_avatars[ $size ] = home_url( $user_avatars[ $size ] );
       +      if ( 'http' == substr( $user_avatars[ $size ], 0, 4 ) ) {
       +              $user_avatars[ $size ] = parse_url($user_avatars[ $size ], PHP_URL_PATH);
              }
   
              // Maybe switch back
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [sublines](https://wordpress.org/support/users/sublines/)
 * (@sublines)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-https-compliant/#post-10396230)
 * I was just about to report the same problem here.
 * Dear plugin authors, please fix this in the next update.
 * Thanks in advance and keep up the good work!
 *  [pako69](https://wordpress.org/support/users/pako69/)
 * (@pako69)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-https-compliant/#post-10549816)
 * Hi
    I do have any issue on my side with my https website… or maybe you can tell
   me where to watch? Thanks
 *  [Clayton Chase](https://wordpress.org/support/users/claytonchase/)
 * (@claytonchase)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-https-compliant/#post-10853339)
 * Having the same issue here! Thanks for the fix. Hopefully it gets fixed on the
   next plugin update.
 *  [jotacu](https://wordpress.org/support/users/jotacu/)
 * (@jotacu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-https-compliant/#post-11318848)
 * Where do I need to put this code in order to fix the issue?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘plugin not https compliant’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-avatars/assets/icon-256x256.png?rev=1266776)
 * [WP User Avatars](https://wordpress.org/plugins/wp-user-avatars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-avatars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-avatars/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-avatars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-avatars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-avatars/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [jotacu](https://wordpress.org/support/users/jotacu/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-https-compliant/#post-11318848)
 * Status: not resolved