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