{"id":4735362,"date":"2014-03-23T20:36:34","date_gmt":"2014-03-23T20:36:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/buf-fix-admin-panel-over-https-problems\/"},"modified":"2016-08-21T18:35:29","modified_gmt":"2016-08-21T18:35:29","slug":"buf-fix-admin-panel-over-https-problems","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/buf-fix-admin-panel-over-https-problems\/","title":{"rendered":"Buf Fix: Admin Panel over HTTPS problems"},"content":{"rendered":"<p>On WP sites that force SSL in the admin panel, Exec-Php is referencing JS files from HTTP and not HTTPS.<\/p>\n<p>This can be fixed by adding the following code in <code>wp-content\/plugins\/exec-php\/includes\/const.php<\/code> line 42:<\/p>\n<pre><code>if (function_exists(&#039;plugins_url&#039;))\n\tdefine(&#039;ExecPhp_HOME_URL&#039;, plugins_url() . &#039;\/&#039;. ExecPhp_HOMEDIR);<\/code><\/pre>\n<p>change the following if statement from:<br \/>\n<code>if (defined(&#039;WP_PLUGIN_URL&#039;))<\/code><br \/>\nto<br \/>\n<code>elseif (defined(&#039;WP_PLUGIN_URL&#039;))<\/code><\/p>\n<p>https:\/\/wordpress.org\/plugins\/exec-php\/<\/p>\n","protected":false},"template":"","class_list":["post-4735362","topic","type-topic","status-closed","hentry","topic-tag-bug-fix"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4735362","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\/4735362\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4735362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}