Skip to content

Instantly share code, notes, and snippets.

@tomthepythonist
Created February 26, 2010 21:05
Show Gist options
  • Save tomthepythonist/316158 to your computer and use it in GitHub Desktop.
Save tomthepythonist/316158 to your computer and use it in GitHub Desktop.
if ((strpos($_SERVER['PHP_SELF'], 'wp-login.php') === false) && (strpos($_SERVER['PHP_SELF'], 'wp-register.php') === false)) {
auth_redirect();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment