{"action":"created","issue":{"url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/3","labels_url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/3/comments","events_url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/3/events","html_url":"https://github.com/kevinvess/wp-force-login/issues/3","id":69859936,"number":3,"title":"Conflict with Wordfence","user":{"login":"bacchusfugue","id":12052010,"avatar_url":"https://avatars.githubusercontent.com/u/12052010?v=3","gravatar_id":"","url":"https://api.github.com/users/bacchusfugue","html_url":"https://github.com/bacchusfugue","followers_url":"https://api.github.com/users/bacchusfugue/followers","following_url":"https://api.github.com/users/bacchusfugue/following{/other_user}","gists_url":"https://api.github.com/users/bacchusfugue/gists{/gist_id}","starred_url":"https://api.github.com/users/bacchusfugue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacchusfugue/subscriptions","organizations_url":"https://api.github.com/users/bacchusfugue/orgs","repos_url":"https://api.github.com/users/bacchusfugue/repos","events_url":"https://api.github.com/users/bacchusfugue/events{/privacy}","received_events_url":"https://api.github.com/users/bacchusfugue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-21T14:24:01Z","updated_at":"2015-05-07T12:07:59Z","closed_at":null,"body":"When active, the plugin keeps Wordfence from scanning. Wordfence worked immediately after disabling force login."},"comment":{"url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/comments/99837815","html_url":"https://github.com/kevinvess/wp-force-login/issues/3#issuecomment-99837815","issue_url":"https://api.github.com/repos/kevinvess/wp-force-login/issues/3","id":99837815,"user":{"login":"bacchusfugue","id":12052010,"avatar_url":"https://avatars.githubusercontent.com/u/12052010?v=3","gravatar_id":"","url":"https://api.github.com/users/bacchusfugue","html_url":"https://github.com/bacchusfugue","followers_url":"https://api.github.com/users/bacchusfugue/followers","following_url":"https://api.github.com/users/bacchusfugue/following{/other_user}","gists_url":"https://api.github.com/users/bacchusfugue/gists{/gist_id}","starred_url":"https://api.github.com/users/bacchusfugue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacchusfugue/subscriptions","organizations_url":"https://api.github.com/users/bacchusfugue/orgs","repos_url":"https://api.github.com/users/bacchusfugue/repos","events_url":"https://api.github.com/users/bacchusfugue/events{/privacy}","received_events_url":"https://api.github.com/users/bacchusfugue/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T12:07:59Z","updated_at":"2015-05-07T12:07:59Z","body":"Sorry it has taken me so long to try this - other projects demanding\natttention...\nThis code broke the functions.php with a \"0\" error\n\nOn Tue, Apr 28, 2015 at 1:32 PM Kevin Vess <notifications@github.com> wrote:\n\n> Dang it! Ok, I will have to do some testing of my own I suppose.\n>\n> For now though, you could try configuring your exceptions code like so:\n>\n> /** * Filter Force Login to allow exceptions for specific URLs. * * @return array An array of URLs. Must be absolute. **/function my_forcelogin_whitelist() {\n>\n>   // list of single page URLs  $my_whitelist = array(\n>\n>     site_url( '/wp-cron.php' ),    site_url( '/wp-admin/admin-ajax.php' )  );\n>\n>   // allow any page URL if localhost  if($_SERVER['REMOTE_ADDR'] == 127.0.0.1) {    $my_whitelist[] = site_url($_SERVER['REQUEST_URI']);  }  return $my_whitelist;\n>\n> }add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);\n>\n> —\n>\n>\n> Reply to this email directly or view it on GitHub\n> <https://github.com/kevinvess/wp-force-login/issues/3#issuecomment-97145034>\n> .\n>\n"}}