[Plugin: Absolute Privacy] WordPress 3.01 Multisite Workaround Hack for 1.3
-
I discovered that Absolute Privacy 1.3 will work with a regular WordPress 3.01 install but not a multisite install. I’ve found a workaround hack that you can try until a compatible version is released and you need to use AP with a WP3 mulisite.
When you try to register as a user and click on the link. WordPress checks in the file wp-login.php to see if it’s a multisite. If it is then you are redirected to /wp-signup.php. If not it directs you to /wp-login.php?action=register. Note: Absolute Privacy plug-in needs to be enabled and users allowed to register themselves. Make sure under Super Admin->Options that User accounts may be registered is enabled and that the Dashboad Default Role is set to Unapproved User. Here’s the fix (aka workaround hack):
You will need to edit the file wp-login.php. Change is_multisite() to !is_multisite(). is_multisite() is in several locations in file so see below where the change should be made. AP will not take you to the custom login form if you are redirected to wp-signup.php but will if you aren’t. By negating is_multisite() with ! you are no longer redirected. You are taken to wp-login.php?action=register which shows the customized Absolute Privacy registration page and everything works as expected.
OLD
case 'register' : if ( <strong>is_multisite()</strong> ) { // Multisite uses wp-signup.php wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) ); exit; }NEW
case 'register' : if ( <strong>!is_multisite()</strong> ) { // Multisite uses wp-signup.php wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) ); exit; }I want to stress that this is a workaround hack and may not work with future versions of WordPress 3.0x. John Kolbert is working on a version 1.4 of Absolute Privacy and is in beta but there is no word on when it will be ready.
A multi-site user registration page works a little different than a regular site. If a WordPress 3.0 website not set up as multi-site Absolute Privacy works as expected as in earlier 2.9x versions of WordPress. Since a multi-site install directs users to a different signup page it bypasses all of the Absolute Privacy functionality.
Chris
The topic ‘[Plugin: Absolute Privacy] WordPress 3.01 Multisite Workaround Hack for 1.3’ is closed to new replies.