Make WordPress Core

Ticket #30898: 30898.patch

File 30898.patch, 1.3 KB (added by iseulde, 11 years ago)
  • src/wp-includes/pluggable.php

     
    21482148        if ( !empty($email) )
    21492149                $email_hash = md5( strtolower( trim( $email ) ) );
    21502150
    2151         if ( is_ssl() ) {
    2152                 $host = 'https://secure.gravatar.com';
    2153         } else {
    2154                 if ( !empty($email) )
    2155                         $host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash[0] ) % 2 ) );
    2156                 else
    2157                         $host = 'http://0.gravatar.com';
    2158         }
     2151        $host = 'https://secure.gravatar.com';
    21592152
    21602153        if ( 'mystery' == $default )
    21612154                $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
  • src/wp-includes/script-loader.php

     
    605605                }
    606606
    607607                // Hotlink Open Sans, for now
    608                 $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
     608                $open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    609609        }
    610610
    611611        // Register a stylesheet for the selected admin color scheme.