{"id":10866444,"date":"2018-11-10T12:03:39","date_gmt":"2018-11-10T12:03:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/global\/"},"modified":"2018-11-10T12:04:54","modified_gmt":"2018-11-10T12:04:54","slug":"global","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/global\/","title":{"rendered":"GLOBAL"},"content":{"rendered":"<p>Hi, line 90 of two-factor-login.php is throwing an error for me because of the use of the GLOBAL function.<\/p>\n<p>Could it be changed to this:<\/p>\n<pre><code>global $pagenow;\nif (&#039;wp-login.php&#039; === $pagenow) {\n  \/\/ rest of code...<\/code><\/pre>\n<p>Thanks, Stephen<\/p>\n","protected":false},"template":"","class_list":["post-10866444","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10866444","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10866444\/revisions"}],"predecessor-version":[{"id":10866449,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10866444\/revisions\/10866449"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10866444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}