{"id":10014034,"date":"2018-02-26T03:25:28","date_gmt":"2018-02-26T03:25:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/logout-redirection-issue\/"},"modified":"2018-02-26T03:25:28","modified_gmt":"2018-02-26T03:25:28","slug":"logout-redirection-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/logout-redirection-issue\/","title":{"rendered":"Logout Redirection issue"},"content":{"rendered":"<p>Hey there,<\/p>\n<p>this might be a very outdated plugin, but it still works just fine in the current WordPress version.<br \/>\nHowever, I found a minor issue in the original code.<\/p>\n<p>Although the plugin seems to check if SSL is used or not (after\/during a login), it still redirects to a http-based URL, which leads to unnecessary errors. This behaviour seems to be hard coded:<\/p>\n<pre><code>\n\t\tif($show_loginout){\n                    if($use_redir){\n                        $redir=&#039;http:\/\/&#039;.$_SERVER[&#039;HTTP_HOST&#039;].$_SERVER[&#039;REQUEST_URI&#039;];\n                    }\n                    echo $each_entry[&#039;before&#039;];\n                    wp_loginout($redir);\n                    echo $each_entry[&#039;after&#039;];\n                }\n<\/code><\/pre>\n<p>I know I could try to &#8220;hack fix&#8221; this, but if there ever would be an update, it would be destroyed.<\/p>\n<p>Greetings<br \/>\nthkg00fy  \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-10014034","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10014034","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\/10014034\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10014034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}