Skip to content

Instantly share code, notes, and snippets.

@mt8
Last active April 14, 2017 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mt8/ad0cdaccb17d9d1ac8aa44aef41bbe6a to your computer and use it in GitHub Desktop.
Save mt8/ad0cdaccb17d9d1ac8aa44aef41bbe6a to your computer and use it in GitHub Desktop.
StaticPressとか使うとき用。非SSLWordPressで再構築するときにGravatarをSSLで取得するためのコード
<?php
function my_pre_get_avatar_data( $args, $id_or_email ) {
$args['scheme'] = 'https';
return $args;
}
add_filter( 'pre_get_avatar_data', 'my_pre_get_avatar_data', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment