{"id":6557412,"date":"2015-09-17T18:25:13","date_gmt":"2015-09-17T18:25:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/needs-to-support-https\/"},"modified":"2016-08-30T18:07:50","modified_gmt":"2016-08-30T18:07:50","slug":"needs-to-support-https","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/needs-to-support-https\/","title":{"rendered":"Needs to support HTTPS"},"content":{"rendered":"<p>Currently the plugin is hard coded to use <code>http:\/\/<\/code> causing mixed content warnings on pages that use <code>https:\/\/<\/code>.<\/p>\n<p>Could you possibly update the plugin to use <code>is_ssl()<\/code> to detect the current page scheme? I have a patch if you need it. It includes adding <code>$scheme<\/code> to the list of supported HTML attributes:<\/p>\n<pre><code>\/\/ Supported HTML attributes for the IMG tag\n        $alt    = $alt ?    &#039; alt=&quot;&#039;    . esc_attr( $alt    ) . &#039;&quot;&#039; : &#039;&#039;;\n        $title  = $title ?  &#039; title=&quot;&#039;  . esc_attr( $title  ) . &#039;&quot;&#039; : &#039;&#039;;\n        $align  = $align ?  &#039; align=&quot;&#039;  . esc_attr( $align  ) . &#039;&quot;&#039; : &#039;&#039;;\n        $style  = $style ?  &#039; style=&quot;&#039;  . esc_attr( $style  ) . &#039;&quot;&#039; : &#039;&#039;;\n        $class  = $class ?  &#039; class=&quot;&#039;  . esc_attr( $class  ) . &#039;&quot;&#039; : &#039;&#039;;\n        $id     = $id ?     &#039; id=&quot;&#039;     . esc_attr( $id     ) . &#039;&quot;&#039; : &#039;&#039;;\n        $border = $border ? &#039; border=&quot;&#039; . esc_attr( $border ) . &#039;&quot;&#039; : &#039;&#039;;\n        $scheme = is_ssl() ? &#039;https:\/\/&#039; : &#039;http:\/\/&#039;;<\/code><\/pre>\n<p>And then making sure to replace the <code>http:\/\/<\/code> in the img tag with <code>$scheme<\/code><\/p>\n<p>https:\/\/wordpress.org\/plugins\/gravatar-shortcode\/<\/p>\n","protected":false},"template":"","class_list":["post-6557412","topic","type-topic","status-publish","hentry","topic-tag-https","topic-tag-scheme","topic-tag-ssl"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6557412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6557412\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6557412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}