[WP-Authenticate] Authentication plugins not compatible with 2.6
-
I just upgraded to 2.6, and I’ve discovered that the various plugins that are used to require authentication don’t work with 2.6, and I’m guessing it is because of the way cookies were changed in 2.6. However, I don’t know enough to fix the problem.
Does anybody have any suggestions on where I can look? Basically I’m either needing help fixing the code to check for the correct “logged-in” cookie, or I need help finding a new plugin (2.6 compatible, obviously) that allows me to require users to log in in order to see content on the blog.
Here is the old code for the plugin. I’m guessing a fix is probably pretty simple:
class wpAuthenticate { /** * If the current page isn't 'wp-login.php' or 'wp-register.php', ensure the * user is logged in. * * @return void */ public static function check_auth_to_read () { //If the current page isn't 'wp-login.php' or 'wp-register.php' redirect if ((strpos($_SERVER['PHP_SELF'], 'wp-login.php') === false) && (strpos($_SERVER['PHP_SELF'], 'wp-register.php') === false)) { auth_redirect(); } } }
Thanks for your help
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘[WP-Authenticate] Authentication plugins not compatible with 2.6’ is closed to new replies.