[wp-trac] [WordPress Trac] #21161: Use protocol relative gravatar URLs
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 5 04:20:55 UTC 2012
#21161: Use protocol relative gravatar URLs
-------------------------+-----------------------------
Reporter: charliesome | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21161>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list