Ticket #21161: use-protocol-agnostic-url.patch
| File use-protocol-agnostic-url.patch, 727 bytes (added by , 14 years ago) |
|---|
-
wp-includes/pluggable.php
1627 1627 if ( !empty($email) ) 1628 1628 $email_hash = md5( strtolower( trim( $email ) ) ); 1629 1629 1630 if ( is_ssl() ) { 1631 $host = 'https://secure.gravatar.com'; 1632 } else { 1633 if ( !empty($email) ) 1634 $host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash[0] ) % 2 ) ); 1635 else 1636 $host = 'http://0.gravatar.com'; 1637 } 1630 $host = '//gravatar.com'; 1638 1631 1639 1632 if ( 'mystery' == $default ) 1640 1633 $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')