{"id":8929609,"date":"2017-03-18T16:15:17","date_gmt":"2017-03-18T16:15:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wrong-protocol-http-vs-https\/"},"modified":"2017-03-18T16:15:17","modified_gmt":"2017-03-18T16:15:17","slug":"wrong-protocol-http-vs-https","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wrong-protocol-http-vs-https\/","title":{"rendered":"Wrong Protocol (http vs https)"},"content":{"rendered":"<p>Hi \ud83d\ude42<\/p>\n<p>Short story:<\/p>\n<p>functions.php line 940 -&gt;<\/p>\n<p><code>$protocol = ($_SERVER[&#039;HTTPS&#039;] &amp;&amp; $_SERVER[&#039;HTTPS&#039;] != &quot;off&quot;) ? &quot;https&quot; : &quot;http&quot;;<\/code><\/p>\n<p>should be <\/p>\n<p><code>$protocol = ($_SERVER[&#039;HTTPS&#039;] &amp;&amp; strtolower($_SERVER[&#039;HTTPS&#039;]) != &quot;off&quot;) ? &quot;https&quot; : &quot;http&quot;;<\/code><\/p>\n<p>because in some cases $_SERVER[&#8216;HTTPS&#8217;] is &#8216;Off&#8217; &#8211; like in my case \ud83d\ude42 <\/p>\n<p>then the autentification failed &#8230; <\/p>\n","protected":false},"template":"","class_list":["post-8929609","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8929609","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\/8929609\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8929609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}