Changes from trunk/wp-includes/pluggable.php at r10150 to branches/2.7/wp-includes/pluggable.php at r10462
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/pluggable.php
r10150 r10462 1211 1211 * You must not copy the below example and paste into your wp-config.php. If you 1212 1212 * 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. 1214 1214 * 1215 1215 * <code> … … 1222 1222 * 1223 1223 * @since 2.5 1224 * @link http ://api.wordpress.org/secret-key/1.0/ Create a Secret Key for wp-config.php1224 * @link https://api.wordpress.org/secret-key/1.1/ Create a Secret Key for wp-config.php 1225 1225 * 1226 1226 * @return string Salt value from either 'SECRET_KEY' or 'secret' option … … 1395 1395 * @since 2.5 1396 1396 * 1397 * @param int $length The length of password to generate 1398 * @param bool $special_chars Whether to include standard special characters 1397 1399 * @return string The random password 1398 1400 **/ … … 1528 1530 } 1529 1531 1532 if ( is_ssl() ) 1533 $host = 'https://secure.gravatar.com'; 1534 else 1535 $host = 'http://www.gravatar.com'; 1536 1530 1537 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') 1532 1539 elseif ( 'blank' == $default ) 1533 1540 $default = includes_url('images/blank.gif'); … … 1535 1542 $default = ''; 1536 1543 elseif ( 'gravatar_default' == $default ) 1537 $default = " http://www.gravatar.com/avatar/s={$size}";1544 $default = "$host/avatar/s={$size}"; 1538 1545 elseif ( empty($email) ) 1539 $default = " http://www.gravatar.com/avatar/?d=$default&s={$size}";1546 $default = "$host/avatar/?d=$default&s={$size}"; 1540 1547 elseif ( strpos($default, 'http://') === 0 ) 1541 1548 $default = add_query_arg( 's', $size, $default ); 1542 1549 1543 1550 if ( !empty($email) ) { 1544 $out = 'http://www.gravatar.com/avatar/';1551 $out = "$host/avatar/"; 1545 1552 $out .= md5( strtolower( $email ) ); 1546 1553 $out .= '?s='.$size;
Note: See TracChangeset
for help on using the changeset viewer.