[Plugin: WordPress Access Control] Non member access won't redirect to customised login page
-
I’m using WordPress Access Control and the Theme My Login plugins on the same site. Theme My Login replaces the WordPress login page wp-login.php with a customised page /login/.
If a non-member tries to access a members-only page, he is redirected to wp-login.php, not /login/. In wordpress-access-control.php (3.1.2) on line 937 there is a hard-coded reference to wp-login.php. If I change that line to read
header( 'Location: ' . wp_login_url($_SERVER['REQUEST_URI']) );
it redirects to /login/ correctly.
Are there any undesirable side effects to this change? If not it looks like a desirable enhancement to me.http://wordpress.org/extend/plugins/wordpress-access-control/
- The topic ‘[Plugin: WordPress Access Control] Non member access won't redirect to customised login page’ is closed to new replies.