custom gravatar links to i2.wp.com causing site to be insecure
-
Parts of my site need to be secure, and they have been. But I’ve just discovered if someone leaves a comment in an area that is supposed to be secure, the custom gravatar causes it not to be. The image URL has i2.wp.com at the beginning of it for some reason. I don’t use Jetpack or photon which is usually the reason for that.
I even created a new image for a custom gravatar, uploaded it, and changed the name in my theme’s functions.php file, but it didn’t fix the security issue. If I choose one of the other default gravatars, my site is secure.
Here is the code I’m using in my functions.php file:
//for custom default avatar add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('url') . '/wp-content/gallery/graphics/wings.jpg'; $avatar_defaults[$myavatar] = "wings"; return $avatar_defaults; }
- The topic ‘custom gravatar links to i2.wp.com causing site to be insecure’ is closed to new replies.