Use protocol relative gravatar URLs
|Reported by:||charliesome||Owned by:|
This patch changes the get_avatar() function in wp-includes/pluggable.php to use protocol relative URLs instead of attempting to detect whether the blog is running over SSL or not.
The //gravatar.com/... links will use HTTP if the page is loaded over HTTP, or HTTPS is the page is loaded over HTTPS. These URLs are widely supported - they'll even work on IE6.
This is preferable as the current code will not work if Apache (or whichever server Wordpress is running on) is not the same server as the one doing SSL.