{"id":4322131,"date":"2013-11-15T17:37:09","date_gmt":"2013-11-15T17:37:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fails-over-https\/"},"modified":"2016-08-21T12:36:38","modified_gmt":"2016-08-21T12:36:38","slug":"fails-over-https","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fails-over-https\/","title":{"rendered":"Fails over HTTPS"},"content":{"rendered":"<p><strong>Problem:<\/strong><br \/>\nTwo URLs have hard-coded http protocol on lines 57 and 68 of geo-my-wp.php, causing a site served over https to error out over mixed\/insecure content.<\/p>\n<p><strong>Suggested fix:<\/strong><br \/>\nList the URLs as protocol-relative:<\/p>\n<p><code>wp_register_script( &#039;google-maps&#039;, &#039;\/\/maps.googleapis.com\/maps\/api\/js?key=&#039;.$gmw_options[&#039;google_api&#039;].&#039;&amp;sensor=false&amp;libraries=places&amp;region=&#039;.$gmw_options[&#039;country_code&#039;],array(),false);<\/code><\/p>\n<p><code>wp_enqueue_style(&#039;jquery-style&#039;, &#039;\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.2\/themes\/smoothness\/jquery-ui.css&#039;);<\/code><\/p>\n<p>https:\/\/wordpress.org\/plugins\/geo-my-wp\/<\/p>\n","protected":false},"template":"","class_list":["post-4322131","topic","type-topic","status-closed","hentry","topic-tag-https","topic-tag-javascript"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4322131","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\/4322131\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4322131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}