WordPress.org

Make WordPress Core

Changeset 10462


Ignore:
Timestamp:
01/29/2009 05:59:03 PM (11 years ago)
Author:
ryan
Message:

Use secure.gravatar.com for SSL avatar requests. fixes #8988 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/pluggable.php

    r10272 r10462  
    15301530    }
    15311531
     1532    if ( is_ssl() )
     1533        $host = 'https://secure.gravatar.com';
     1534    else
     1535        $host = 'http://www.gravatar.com';
     1536
    15321537    if ( 'mystery' == $default )
    1533         $default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
     1538        $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    15341539    elseif ( 'blank' == $default )
    15351540        $default = includes_url('images/blank.gif');
     
    15371542        $default = '';
    15381543    elseif ( 'gravatar_default' == $default )
    1539         $default = "http://www.gravatar.com/avatar/s={$size}";
     1544        $default = "$host/avatar/s={$size}";
    15401545    elseif ( empty($email) )
    1541         $default = "http://www.gravatar.com/avatar/?d=$default&s={$size}";
     1546        $default = "$host/avatar/?d=$default&s={$size}";
    15421547    elseif ( strpos($default, 'http://') === 0 )
    15431548        $default = add_query_arg( 's', $size, $default );
    15441549
    15451550    if ( !empty($email) ) {
    1546         $out = 'http://www.gravatar.com/avatar/';
     1551        $out = "$host/avatar/";
    15471552        $out .= md5( strtolower( $email ) );
    15481553        $out .= '?s='.$size;
Note: See TracChangeset for help on using the changeset viewer.