WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r10150 r10462  
    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 http://api.wordpress.org/secret-key/1.0/ secret key created} for you.
     1213 * {@link https://api.wordpress.org/secret-key/1.1/ secret key created} for you.
    12141214 *
    12151215 * <code>
     
    12221222 *
    12231223 * @since 2.5
    1224  * @link http://api.wordpress.org/secret-key/1.0/ Create a Secret Key for wp-config.php
     1224 * @link https://api.wordpress.org/secret-key/1.1/ 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
    13971399 * @return string The random password
    13981400 **/
     
    15281530    }
    15291531
     1532    if ( is_ssl() )
     1533        $host = 'https://secure.gravatar.com';
     1534    else
     1535        $host = 'http://www.gravatar.com';
     1536
    15301537    if ( 'mystery' == $default )
    1531         $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')
    15321539    elseif ( 'blank' == $default )
    15331540        $default = includes_url('images/blank.gif');
     
    15351542        $default = '';
    15361543    elseif ( 'gravatar_default' == $default )
    1537         $default = "http://www.gravatar.com/avatar/s={$size}";
     1544        $default = "$host/avatar/s={$size}";
    15381545    elseif ( empty($email) )
    1539         $default = "http://www.gravatar.com/avatar/?d=$default&amp;s={$size}";
     1546        $default = "$host/avatar/?d=$default&amp;s={$size}";
    15401547    elseif ( strpos($default, 'http://') === 0 )
    15411548        $default = add_query_arg( 's', $size, $default );
    15421549
    15431550    if ( !empty($email) ) {
    1544         $out = 'http://www.gravatar.com/avatar/';
     1551        $out = "$host/avatar/";
    15451552        $out .= md5( strtolower( $email ) );
    15461553        $out .= '?s='.$size;
Note: See TracChangeset for help on using the changeset viewer.