WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r10462 r10150  
    12111211 * You must not copy the below example and paste into your wp-config.php. If you
    12121212 * need an example, then you can have a
    1213  * {@link https://api.wordpress.org/secret-key/1.1/ secret key created} for you.
     1213 * {@link http://api.wordpress.org/secret-key/1.0/ secret key created} for you.
    12141214 *
    12151215 * <code>
     
    12221222 *
    12231223 * @since 2.5
    1224  * @link https://api.wordpress.org/secret-key/1.1/ Create a Secret Key for wp-config.php
     1224 * @link http://api.wordpress.org/secret-key/1.0/ Create a Secret Key for wp-config.php
    12251225 *
    12261226 * @return string Salt value from either 'SECRET_KEY' or 'secret' option
     
    13951395 * @since 2.5
    13961396 *
    1397  * @param int $length The length of password to generate
    1398  * @param bool $special_chars Whether to include standard special characters
    13991397 * @return string The random password
    14001398 **/
     
    15301528    }
    15311529
    1532     if ( is_ssl() )
    1533         $host = 'https://secure.gravatar.com';
    1534     else
    1535         $host = 'http://www.gravatar.com';
    1536 
    15371530    if ( 'mystery' == $default )
    1538         $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
     1531        $default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    15391532    elseif ( 'blank' == $default )
    15401533        $default = includes_url('images/blank.gif');
     
    15421535        $default = '';
    15431536    elseif ( 'gravatar_default' == $default )
    1544         $default = "$host/avatar/s={$size}";
     1537        $default = "http://www.gravatar.com/avatar/s={$size}";
    15451538    elseif ( empty($email) )
    1546         $default = "$host/avatar/?d=$default&amp;s={$size}";
     1539        $default = "http://www.gravatar.com/avatar/?d=$default&amp;s={$size}";
    15471540    elseif ( strpos($default, 'http://') === 0 )
    15481541        $default = add_query_arg( 's', $size, $default );
    15491542
    15501543    if ( !empty($email) ) {
    1551         $out = "$host/avatar/";
     1544        $out = 'http://www.gravatar.com/avatar/';
    15521545        $out .= md5( strtolower( $email ) );
    15531546        $out .= '?s='.$size;
Note: See TracChangeset for help on using the changeset viewer.