WP Social Bookmarking Lightプラグインを使って、SSLなページに使うと、はてなブックマークのでSSL warningを出してしまう。
はてなでは、6月12日にSSL対応の画像とjavascriptコードを提供しはしめた:
ので、これに対応するようWP Social Bookmarking Ligthを修正。
plugins/wp-social-bookmarking-light/modules/services.php を編集
line86あたりから
return $this->link_raw('<a href="'.$url.'"'
.' class="hatena-bookmark-button"'
.' data-hatena-bookmark-title="'.$title.'"'
.' data-hatena-bookmark-layout="'.$options['hatena_button']['layout'].'"'
.' title="'.$alt.'">'
.' <img src="http://b.st-hatena.com/images/entry-button/button-only.gif"'
.' alt="'.$alt.'" width="20" height="20" style="border: none;" /></a>'
.'<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button_wo_al.js" charset="utf-8" async="async"></script>');
となっている部分を、はてな記事に従って
return $this->link_raw('<a href="'.$url.'"'
.' class="hatena-bookmark-button"'
.' data-hatena-bookmark-title="'.$title.'"'
.' data-hatena-bookmark-layout="'.$options['hatena_button']['layout'].'"'
.' title="'.$alt.'">'
.' <img src="https://b.hatena.ne.jp/images/entry-button/button-only.gif"'
.' alt="'.$alt.'" width="20" height="20" style="border: none;" /></a>'
.'<script type="text/javascript" src="https://b.hatena.ne.jp/js/bookmark_button.js" charset="utf-8" async="async"></script>');
WP Social Bookmarking Lightプラグインでも対応してもらえると嬉しいな。
(WP Social Bookmarking Light ver 1.7.5にて)
